Fix the SSL_set1_sigalgs() macro
authorMatt Caswell <matt@openssl.org>
Fri, 30 Dec 2016 17:11:09 +0000 (17:11 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 30 Dec 2016 17:33:43 +0000 (17:33 +0000)
This macro has a typo in it which makes it unusable. This issue was already
fixed in 1.0.2 in commit 75fdee04827, but the same fix was not applied to
other branches.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2160)

include/openssl/ssl.h

index e746a814c792f2d959890b73aa1a8c105066da32..68c13d4c9789e316fd82a92ede1cafdf4640960e 100644 (file)
@@ -1258,7 +1258,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) \