LEFT | RIGHT |
(no file at all) | |
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ | 1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 /* | 2 /* |
3 * SSL server certificate configuration functions. | 3 * SSL server certificate configuration functions. |
4 * | 4 * |
5 * This Source Code Form is subject to the terms of the Mozilla Public | 5 * This Source Code Form is subject to the terms of the Mozilla Public |
6 * License, v. 2.0. If a copy of the MPL was not distributed with this | 6 * License, v. 2.0. If a copy of the MPL was not distributed with this |
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
8 | 8 |
9 #include "ssl.h" | 9 #include "ssl.h" |
10 #include "sslimpl.h" | 10 #include "sslimpl.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 if (cert->certType.authType != certType->authType) { | 142 if (cert->certType.authType != certType->authType) { |
143 continue; | 143 continue; |
144 } | 144 } |
145 switch (cert->certType.authType) { | 145 switch (cert->certType.authType) { |
146 case ssl_auth_ecdsa: | 146 case ssl_auth_ecdsa: |
147 case ssl_auth_ecdh_rsa: | 147 case ssl_auth_ecdh_rsa: |
148 case ssl_auth_ecdh_ecdsa: | 148 case ssl_auth_ecdh_ecdsa: |
149 /* Note: For deprecated APIs, we need to be able to find and | 149 /* Note: For deprecated APIs, we need to be able to find and |
150 match a slot with any named curve. */ | 150 match a slot with any named curve. */ |
151 if (certType->namedCurve && | 151 if (certType->namedCurve && |
152 cert->certType.namedCurve != certType->namedCurve) { | 152 cert->certType.namedCurve->name != certType->namedCurve->nam
e) { |
153 continue; | 153 continue; |
154 } | 154 } |
155 break; | 155 break; |
156 default: | 156 default: |
157 break; | 157 break; |
158 } | 158 } |
159 return cert; | 159 return cert; |
160 } | 160 } |
161 return NULL; | 161 return NULL; |
162 } | 162 } |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
992 return ssl_kea_rsa; | 992 return ssl_kea_rsa; |
993 case SEC_OID_ANSIX9_DSA_SIGNATURE: /* hah, signature, not a key? */ | 993 case SEC_OID_ANSIX9_DSA_SIGNATURE: /* hah, signature, not a key? */ |
994 case SEC_OID_X942_DIFFIE_HELMAN_KEY: | 994 case SEC_OID_X942_DIFFIE_HELMAN_KEY: |
995 return ssl_kea_dh; | 995 return ssl_kea_dh; |
996 case SEC_OID_ANSIX962_EC_PUBLIC_KEY: | 996 case SEC_OID_ANSIX962_EC_PUBLIC_KEY: |
997 return ssl_kea_ecdh; | 997 return ssl_kea_ecdh; |
998 default: | 998 default: |
999 return ssl_kea_null; | 999 return ssl_kea_null; |
1000 } | 1000 } |
1001 } | 1001 } |
LEFT | RIGHT |