change prototype of the ecdh KDF: make input parameter const and the outlen argument...
[openssl.git] / apps / ciphers.c
index 2d6e104790cf9440193bf2e3db427e3dbdce396a..43f0ac594ad4b7b0b50683ffbc3986abf27f441d 100644 (file)
@@ -69,7 +69,7 @@
 #undef PROG
 #define PROG   ciphers_main
 
-static char *ciphers_usage[]={
+static const char *ciphers_usage[]={
 "usage: ciphers args\n",
 " -v          - verbose mode, a textual listing of the ciphers in SSLeay\n",
 " -ssl2       - SSL2 mode\n",
@@ -84,7 +84,7 @@ int MAIN(int argc, char **argv)
        {
        int ret=1,i;
        int verbose=0;
-       char **pp;
+       const char **pp;
        const char *p;
        int badops=0;
        SSL_CTX *ctx=NULL;
@@ -187,7 +187,7 @@ int MAIN(int argc, char **argv)
                        {
                        BIO_puts(STDout,SSL_CIPHER_description(
                                sk_SSL_CIPHER_value(sk,i),
-                               buf,512));
+                               buf,sizeof buf));
                        }
                }
 
@@ -203,6 +203,6 @@ end:
        if (ssl != NULL) SSL_free(ssl);
        if (STDout != NULL) BIO_free_all(STDout);
        apps_shutdown();
-       EXIT(ret);
+       OPENSSL_EXIT(ret);
        }