Fix typo setting up certificate masks
authorMatt Caswell <matt@openssl.org>
Fri, 22 May 2015 12:48:49 +0000 (13:48 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 22 May 2015 22:59:33 +0000 (23:59 +0100)
The certificate masks are used to select which ciphersuite we are going to
use. The variables |emask_k| and |emask_a| relate to export grade key
exchange and authentication respecitively. The variables |mask_k| and
|mask_a| are the equivalent versions for non-export grade. This fixes an
instance where the two usages of export/non-export were mixed up. In
practice it makes little difference since it still works!

Reviewed-by: Richard Levitte <levitte@openssl.org>
ssl/ssl_lib.c

index 3952b6b731e4a99844c213d151b42c8b60be18a1..5ca917119cb9dc0d1f4d6a6e1714c9f21581f607 100644 (file)
@@ -2024,7 +2024,7 @@ void ssl_set_masks(SSL *s, const SSL_CIPHER *cipher)
     if (dh_dsa_export)
         emask_k |= SSL_kDHd;
 
-    if (emask_k & (SSL_kDHr | SSL_kDHd))
+    if (mask_k & (SSL_kDHr | SSL_kDHd))
         mask_a |= SSL_aDH;
 
     if (rsa_enc || rsa_sign) {