Skip to content

Commit 3738841

Browse files
authored
Merge pull request wolfSSL#528 from dgpighin/renaming
Replace WOLFSSL_HAVE_KYBER with WOLFSSL_HAVE_MLKEM in wolfssl-examples/pq/tls/client-pq-tls13.c and wolfssl-examples/pq/tls/server-pq-tls13.c
2 parents 75a4312 + 3b12b80 commit 3738841

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pq/tls/client-pq-tls13.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include <wolfssl/wolfio.h>
3737
#include <wolfssl/wolfcrypt/error-crypt.h>
3838

39-
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_HAVE_KYBER) && \
39+
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_HAVE_MLKEM) && \
4040
defined(HAVE_DILITHIUM)
4141

4242
#define DEFAULT_PORT 11111
@@ -111,12 +111,12 @@ static int Tls13SecretCallback(WOLFSSL* ssl, int id, const unsigned char* secret
111111
return 0;
112112
}
113113
#endif /* HAVE_SECRET_CALLBACK */
114-
#endif /* WOLFSSL_TLS13 && WOLFSSL_HAVE_KYBER && HAVE_DILITHIUM */
114+
#endif /* WOLFSSL_TLS13 && WOLFSSL_HAVE_MLKEM && HAVE_DILITHIUM */
115115

116116
int main(int argc, char** argv)
117117
{
118118
int ret = 0;
119-
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_HAVE_KYBER) && \
119+
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_HAVE_MLKEM) && \
120120
defined(HAVE_DILITHIUM)
121121
int sockfd = SOCKET_INVALID;
122122
struct sockaddr_in servAddr;
@@ -270,7 +270,7 @@ int main(int argc, char** argv)
270270
printf("This requires TLS 1.3, ML-DSA (Dilithium) and ML-KEM (Kyber).\n");
271271
printf("Configure wolfssl like this:\n");
272272
printf(" ./configure --enable-dilithium --enable-kyber\n");
273-
#endif /* WOLFSSL_TLS13 && WOLFSSL_HAVE_KYBER && HAVE_DILITHIUM */
273+
#endif /* WOLFSSL_TLS13 && WOLFSSL_HAVE_MLKEM && HAVE_DILITHIUM */
274274
(void)argc;
275275
(void)argv;
276276

pq/tls/server-pq-tls13.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#include <wolfssl/wolfio.h>
4242
#include <wolfssl/wolfcrypt/error-crypt.h>
4343

44-
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_HAVE_KYBER) && \
44+
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_HAVE_MLKEM) && \
4545
defined(HAVE_DILITHIUM)
4646

4747
#define DEFAULT_PORT 11111
@@ -139,13 +139,13 @@ static void sig_handler(const int sig)
139139
}
140140
}
141141
#endif /* HAVE_SIGNAL */
142-
#endif /* WOLFSSL_TLS13 && WOLFSSL_HAVE_KYBER && HAVE_DILITHIUM */
142+
#endif /* WOLFSSL_TLS13 && WOLFSSL_HAVE_MLKEM && HAVE_DILITHIUM */
143143

144144
int main(int argc, char** argv)
145145
{
146146
int ret = 0;
147147

148-
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_HAVE_KYBER) && \
148+
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_HAVE_MLKEM) && \
149149
defined(HAVE_DILITHIUM)
150150

151151
struct sockaddr_in servAddr;
@@ -341,7 +341,7 @@ int main(int argc, char** argv)
341341
printf("This requires TLS 1.3, ML-DSA (Dilithium) and ML-KEM (Kyber).\n");
342342
printf("Configure wolfssl like this:\n");
343343
printf(" ./configure --enable-dilithium --enable-kyber\n");
344-
#endif /* WOLFSSL_TLS13 && WOLFSSL_HAVE_KYBER && HAVE_DILITHIUM */
344+
#endif /* WOLFSSL_TLS13 && WOLFSSL_HAVE_MLKEM && HAVE_DILITHIUM */
345345

346346
(void)argc;
347347
(void)argv;

0 commit comments

Comments
 (0)