File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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 ];
@@ -152,7 +152,7 @@ int main(int argc, char** argv)
152152 return APP_ERR ;
153153 }
154154
155- wolfSSL_d2i_PKCS12_bio (bio , & pkcs12 );
155+ pkcs12 = wolfSSL_d2i_PKCS12_bio (bio , NULL );
156156 if (!pkcs12 ) {
157157 printf ("Failed the d2i_PKCS12_bio call\n" );
158158 wolfSSL_CTX_free (ctx );
@@ -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
You can’t perform that action at this time.
0 commit comments