Wrong definition of the macro SSL_set1_sigalgs in ssl.h
authorarijitnayak <arijit.nayak@yahoo.co.in>
Thu, 31 Dec 2015 07:38:54 +0000 (13:08 +0530)
committerRich Salz <rsalz@openssl.org>
Tue, 12 Jan 2016 17:53:27 +0000 (12:53 -0500)
Error in the definition of the macro SSL_set1_sigalgs(ctx, slist,
slistlen): the third parameter 'slistlen' not used in the substitution
code; used 'clistlen' instead. As a result of this, compilation error
occurs when any application uses this macro.

Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
ssl/ssl.h

index afec1f5bf29f69b371dc316734d0baf6ccd7eccc..f118829efd521b85934340d4ef04348f501e40ed 100644 (file)
--- a/ssl/ssl.h
+++ b/ssl/ssl.h
@@ -2092,7 +2092,7 @@ DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION)
 # define SSL_CTX_set1_sigalgs_list(ctx, s) \
         SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)s)
 # define SSL_set1_sigalgs(ctx, slist, slistlen) \
-        SSL_ctrl(ctx,SSL_CTRL_SET_SIGALGS,clistlen,(int *)slist)
+        SSL_ctrl(ctx,SSL_CTRL_SET_SIGALGS,slistlen,(int *)slist)
 # define SSL_set1_sigalgs_list(ctx, s) \
         SSL_ctrl(ctx,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)s)
 # define SSL_CTX_set1_client_sigalgs(ctx, slist, slistlen) \