diff --git a/src/Cedar/Admin.c b/src/Cedar/Admin.c index 84671de4..71ad5767 100644 --- a/src/Cedar/Admin.c +++ b/src/Cedar/Admin.c @@ -7777,11 +7777,6 @@ UINT StAddCa(ADMIN *a, RPC_HUB_ADD_CA *t) return ERR_INVALID_PARAMETER; } - if (t->Cert->is_compatible_bit == false) - { - return ERR_NOT_RSA_1024; - } - CHECK_RIGHT; LockHubList(c); @@ -9446,11 +9441,6 @@ UINT StSetServerCert(ADMIN *a, RPC_KEY_PAIR *t) return ERR_PROTOCOL_ERROR; } - if (t->Cert->is_compatible_bit == false) - { - return ERR_NOT_RSA_1024; - } - if (CheckXandK(t->Cert, t->Key) == false) { return ERR_PROTOCOL_ERROR; diff --git a/src/Cedar/Client.c b/src/Cedar/Client.c index 1ce3fe83..3067cdc3 100644 --- a/src/Cedar/Client.c +++ b/src/Cedar/Client.c @@ -7109,14 +7109,6 @@ bool CtSetAccount(CLIENT *c, RPC_CLIENT_CREATE_ACCOUNT *a, bool inner) } } - if (a->ServerCert != NULL && a->ServerCert->is_compatible_bit == false) - { - // Server certificate is invalid - UnlockList(c->AccountList); - CiSetError(c, ERR_NOT_RSA_1024); - return false; - } - Lock(ret->lock); { @@ -7236,14 +7228,6 @@ bool CtCreateAccount(CLIENT *c, RPC_CLIENT_CREATE_ACCOUNT *a, bool inner) } } - if (a->ServerCert != NULL && a->ServerCert->is_compatible_bit == false) - { - // The server certificate is invalid - UnlockList(c->AccountList); - CiSetError(c, ERR_NOT_RSA_1024); - return false; - } - // Add a new account new_account = ZeroMalloc(sizeof(ACCOUNT)); new_account->lock = NewLock(); @@ -8536,12 +8520,6 @@ bool CtAddCa(CLIENT *c, RPC_CERT *cert) return false; } - if (cert->x->is_compatible_bit == false) - { - CiSetError(c, ERR_NOT_RSA_1024); - return false; - } - AddCa(c->Cedar, cert->x); CiSaveConfigurationFile(c);