OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | 4 |
5 #ifdef NSS_ENABLE_ECC | 5 #ifndef NSS_DISABLE_ECC |
6 | 6 |
7 #include "blapi.h" | 7 #include "blapi.h" |
8 #include "secoid.h" | 8 #include "secoid.h" |
9 #include "secitem.h" | 9 #include "secitem.h" |
10 #include "secerr.h" | 10 #include "secerr.h" |
11 #include "ec.h" | 11 #include "ec.h" |
12 #include "ecl-curve.h" | 12 #include "ecl-curve.h" |
13 | 13 |
14 #define CHECK_OK(func) if (func == NULL) goto cleanup | 14 #define CHECK_OK(func) if (func == NULL) goto cleanup |
15 #define CHECK_SEC_OK(func) if (SECSuccess != (rv = func)) goto cleanup | 15 #define CHECK_SEC_OK(func) if (SECSuccess != (rv = func)) goto cleanup |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 rv = EC_FillParams(arena, encodedParams, params); | 596 rv = EC_FillParams(arena, encodedParams, params); |
597 if (rv == SECFailure) { | 597 if (rv == SECFailure) { |
598 PORT_FreeArena(arena, PR_TRUE); | 598 PORT_FreeArena(arena, PR_TRUE); |
599 return SECFailure; | 599 return SECFailure; |
600 } else { | 600 } else { |
601 *ecparams = params;; | 601 *ecparams = params;; |
602 return SECSuccess; | 602 return SECSuccess; |
603 } | 603 } |
604 } | 604 } |
605 | 605 |
606 #endif /* NSS_ENABLE_ECC */ | 606 #endif /* NSS_DISABLE_ECC */ |
OLD | NEW |