Fix no-psk compile failure
authorMatt Caswell <matt@openssl.org>
Mon, 14 Dec 2015 09:58:55 +0000 (09:58 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 15 Dec 2015 11:22:34 +0000 (11:22 +0000)
Reviewed-by: Tim Hudson <tjh@openssl.org>
apps/ciphers.c

index 12dca50a12584c172fcb2be8e2199000164fe648..d5a7631ac1e39e516aad682a150aa2c99401409b 100644 (file)
@@ -93,6 +93,7 @@ OPTIONS ciphers_options[] = {
     {NULL}
 };
 
+#ifndef OPENSSL_NO_PSK
 static unsigned int dummy_psk(SSL *ssl, const char *hint, char *identity,
                               unsigned int max_identity_len,
                               unsigned char *psk,
@@ -100,6 +101,7 @@ static unsigned int dummy_psk(SSL *ssl, const char *hint, char *identity,
 {
     return 0;
 }
+#endif
 
 int ciphers_main(int argc, char **argv)
 {