mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-04-20 18:08:44 +02:00
Make NID's consistent
- `CTC_SHAwDSA` -> `NID_dsaWithSHA1` - `CTC_SHA256wDSA` -> `NID_dsa_with_SHA256` - `CTC_MD2wRSA` -> `NID_md2WithRSAEncryption` - `CTC_MD5wRSA` -> `NID_md5WithRSAEncryption` - `CTC_SHAwRSA` -> `NID_sha1WithRSAEncryption` - `CTC_SHA224wRSA` -> `NID_sha224WithRSAEncryption` - `CTC_SHA256wRSA` -> `NID_sha256WithRSAEncryption` - `CTC_SHA384wRSA` -> `NID_sha384WithRSAEncryption` - `CTC_SHA512wRSA` -> `NID_sha512WithRSAEncryption` - `CTC_SHA3_224wRSA` -> `NID_RSA_SHA3_224` - `CTC_SHA3_256wRSA` -> `NID_RSA_SHA3_256` - `CTC_SHA3_384wRSA` -> `NID_RSA_SHA3_384` - `CTC_SHA3_512wRSA` -> `NID_RSA_SHA3_512` - `CTC_SHAwECDSA` -> `NID_ecdsa_with_SHA1` - `CTC_SHA224wECDSA` -> `NID_ecdsa_with_SHA224` - `CTC_SHA256wECDSA` -> `NID_ecdsa_with_SHA256` - `CTC_SHA384wECDSA` -> `NID_ecdsa_with_SHA384` - `CTC_SHA512wECDSA` -> `NID_ecdsa_with_SHA512` - `CTC_SHA3_224wECDSA` -> `NID_ecdsa_with_SHA3_224` - `CTC_SHA3_256wECDSA` -> `NID_ecdsa_with_SHA3_256` - `CTC_SHA3_384wECDSA` -> `NID_ecdsa_with_SHA3_384` - `CTC_SHA3_512wECDSA` -> `NID_ecdsa_with_SHA3_512` - `DSAk` -> `NID_dsa` - `RSAk` -> `NID_rsaEncryption` - `ECDSAk` -> `NID_X9_62_id_ecPublicKey`
This commit is contained in:
12
tests/api.c
12
tests/api.c
@@ -33994,6 +33994,9 @@ static void test_wolfSSL_X509_STORE_load_locations(void)
|
||||
AssertIntEQ(X509_STORE_load_locations(store, client_pem_file, NULL), WOLFSSL_SUCCESS);
|
||||
AssertIntEQ(X509_STORE_load_locations(store, NULL, certs_path), WOLFSSL_SUCCESS);
|
||||
|
||||
/* Clear nodes */
|
||||
wc_ClearErrorNodes();
|
||||
|
||||
SSL_CTX_free(ctx);
|
||||
printf(resultFmt, passed);
|
||||
#endif
|
||||
@@ -36050,7 +36053,7 @@ static void test_wolfSSL_X509_ALGOR_get0(void)
|
||||
AssertNotNull(ppval);
|
||||
AssertIntNE(pptype, 0);
|
||||
/* Make sure NID of X509_ALGOR is Sha256 with RSA */
|
||||
AssertIntEQ(OBJ_obj2nid(obj), CTC_SHA256wRSA);
|
||||
AssertIntEQ(OBJ_obj2nid(obj), NID_sha256WithRSAEncryption);
|
||||
|
||||
X509_free(x509);
|
||||
|
||||
@@ -36241,7 +36244,7 @@ static void test_wolfSSL_X509_PUBKEY(void)
|
||||
AssertNotNull(pubKey);
|
||||
AssertIntGT(ppklen, 0);
|
||||
|
||||
AssertIntEQ(OBJ_obj2nid(obj), RSAk);
|
||||
AssertIntEQ(OBJ_obj2nid(obj), NID_rsaEncryption);
|
||||
|
||||
AssertNotNull(evpKey = X509_PUBKEY_get(pubKey));
|
||||
AssertNotNull(pubKey2 = X509_PUBKEY_new());
|
||||
@@ -40860,13 +40863,10 @@ static void test_wolfSSL_OpenSSL_add_all_algorithms(void){
|
||||
printf(testingFmt, "wolfSSL_OpenSSL_add_all_algorithms()");
|
||||
|
||||
AssertIntEQ(wolfSSL_add_all_algorithms(),WOLFSSL_SUCCESS);
|
||||
wolfSSL_Cleanup();
|
||||
|
||||
AssertIntEQ(wolfSSL_OpenSSL_add_all_algorithms_noconf(),WOLFSSL_SUCCESS);
|
||||
wolfSSL_Cleanup();
|
||||
|
||||
AssertIntEQ(wolfSSL_OpenSSL_add_all_algorithms_conf(),WOLFSSL_SUCCESS);
|
||||
wolfSSL_Cleanup();
|
||||
|
||||
printf(resultFmt, passed);
|
||||
#endif
|
||||
@@ -45675,7 +45675,7 @@ static void test_X509_get_signature_nid(void)
|
||||
AssertIntEQ(X509_get_signature_nid(NULL), 0);
|
||||
AssertNotNull(x509 = wolfSSL_X509_load_certificate_file(svrCertFile,
|
||||
SSL_FILETYPE_PEM));
|
||||
AssertIntEQ(X509_get_signature_nid(x509), CTC_SHA256wRSA);
|
||||
AssertIntEQ(X509_get_signature_nid(x509), NID_sha256WithRSAEncryption);
|
||||
X509_free(x509);
|
||||
|
||||
printf(resultFmt, passed);
|
||||
|
||||
Reference in New Issue
Block a user