Skip to content

Commit b067686

Browse files
committed
Copy-paste error in ProcessBufferCertPublicKey and ProcessBufferCertAltPublicKey, Fix #endif comments closing WOLFSSL_SM2/SM3 blocks, not HAVE_ED25519
1 parent 5003c03 commit b067686

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ssl_load.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ static int ProcessBufferCertPublicKey(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
16721672
ECC_KEY_SIZE_E);
16731673
}
16741674
break;
1675-
#endif /* HAVE_ED25519 */
1675+
#endif /* WOLFSSL_SM2 && WOLFSSL_SM3 */
16761676
#ifdef HAVE_ED25519
16771677
case ED25519k:
16781678
keyType = ed25519_sa_algo;
@@ -1882,7 +1882,7 @@ static int ProcessBufferCertAltPublicKey(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
18821882
ECC_KEY_SIZE_E);
18831883
}
18841884
break;
1885-
#endif /* HAVE_ED25519 */
1885+
#endif /* WOLFSSL_SM2 && WOLFSSL_SM3 */
18861886
#ifdef HAVE_ED25519
18871887
case ED25519k:
18881888
keyType = ed25519_sa_algo;

0 commit comments

Comments
 (0)