]> granicus.if.org Git - openssl/commitdiff
Add brainpool curves to NID table too.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 15 Oct 2013 11:08:47 +0000 (12:08 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 15 Oct 2013 11:09:54 +0000 (12:09 +0100)
(cherry picked from commit 6699cb84912f0d7c04acbf91c3e3dbdae5929857)

ssl/t1_lib.c

index a3e13ccdb1d869f08c276db5552d86edddd55a7a..ced7b83381a05980aac8503a9f9b48d4aa1ef5a4 100644 (file)
@@ -360,6 +360,12 @@ int tls1_ec_nid2curve_id(int nid)
                return 24;
        case NID_secp521r1:  /* secp521r1 (25) */       
                return 25;
+       case NID_brainpoolP256r1:  /* brainpoolP256r1 (26) */
+               return 26;
+       case NID_brainpoolP384r1:  /* brainpoolP384r1 (27) */
+               return 27;
+       case NID_brainpoolP512r1:  /* brainpool512r1 (28) */
+               return 28;
        default:
                return 0;
                }