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 #ifndef NSS_DISABLE_ECC | 5 #ifndef NSS_DISABLE_ECC |
6 | 6 |
| 7 #ifdef FREEBL_NO_DEPEND |
| 8 #include "stubs.h" |
| 9 #endif |
| 10 |
7 #include "blapi.h" | 11 #include "blapi.h" |
8 #include "secoid.h" | 12 #include "secoid.h" |
9 #include "secitem.h" | 13 #include "secitem.h" |
10 #include "secerr.h" | 14 #include "secerr.h" |
11 #include "ec.h" | 15 #include "ec.h" |
12 #include "ecl-curve.h" | 16 #include "ecl-curve.h" |
13 | 17 |
14 #define CHECK_OK(func) if (func == NULL) goto cleanup | 18 #define CHECK_OK(func) if (func == NULL) goto cleanup |
15 #define CHECK_SEC_OK(func) if (SECSuccess != (rv = func)) goto cleanup | 19 #define CHECK_SEC_OK(func) if (SECSuccess != (rv = func)) goto cleanup |
16 | 20 |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 if (rv == SECFailure) { | 601 if (rv == SECFailure) { |
598 PORT_FreeArena(arena, PR_TRUE); | 602 PORT_FreeArena(arena, PR_TRUE); |
599 return SECFailure; | 603 return SECFailure; |
600 } else { | 604 } else { |
601 *ecparams = params;; | 605 *ecparams = params;; |
602 return SECSuccess; | 606 return SECSuccess; |
603 } | 607 } |
604 } | 608 } |
605 | 609 |
606 #endif /* NSS_DISABLE_ECC */ | 610 #endif /* NSS_DISABLE_ECC */ |
OLD | NEW |