Skip to content

Commit 83ec2dc

Browse files
committed
Let user know they need to use --enable-keygen
1 parent 8573325 commit 83ec2dc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tls/client-tls-pkcs12.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ int main(int argc, char** argv)
5252
int ret = 0;
5353

5454
#if defined(OPENSSL_EXTRA) && !defined(NO_PWDBASED) && !defined(NO_ASN) \
55-
&& !defined(NO_DES3)
55+
&& !defined(NO_DES3) && defined(WOLFSSL_KEY_GEN)
5656
int sockfd;
5757
struct sockaddr_in servAddr;
5858
char buff[256];
@@ -293,6 +293,10 @@ int main(int argc, char** argv)
293293
printf("wolfSSL not configured with --enable-des3\n");
294294
#endif
295295

296+
#ifndef WOLFSSL_KEY_GEN
297+
printf("wolfSSL not configured with --enable-keygen\n");
298+
#endif
299+
296300
printf("Please re-configure and re-install wolfSSL before using\n"
297301
"this example\n\n");
298302
#endif

0 commit comments

Comments
 (0)