Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: nss/lib/certdb/xbsconst.c

Issue 13898013: Update NSS to NSS_3_15_BETA2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Update NSS versions and tag in README.chromium Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 /* 5 /*
6 * X.509 v3 Basic Constraints Extension 6 * X.509 v3 Basic Constraints Extension
7 */ 7 */
8 8
9 #include "prtypes.h" 9 #include "prtypes.h"
10 #include <limits.h> /* for LONG_MAX */ 10 #include <limits.h> /* for LONG_MAX */
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 GEN_BREAK (SECFailure); 81 GEN_BREAK (SECFailure);
82 } 82 }
83 } while (0); 83 } while (0);
84 if (our_pool) 84 if (our_pool)
85 PORT_FreeArena (our_pool, PR_FALSE); 85 PORT_FreeArena (our_pool, PR_FALSE);
86 return(rv); 86 return(rv);
87 87
88 } 88 }
89 89
90 SECStatus CERT_DecodeBasicConstraintValue 90 SECStatus CERT_DecodeBasicConstraintValue
91 (CERTBasicConstraints *value, SECItem *encodedValue) 91 (CERTBasicConstraints *value, const SECItem *encodedValue)
92 { 92 {
93 EncodedContext decodeContext; 93 EncodedContext decodeContext;
94 PRArenaPool *our_pool; 94 PRArenaPool *our_pool;
95 SECStatus rv = SECSuccess; 95 SECStatus rv = SECSuccess;
96 96
97 do { 97 do {
98 PORT_Memset (&decodeContext, 0, sizeof (decodeContext)); 98 PORT_Memset (&decodeContext, 0, sizeof (decodeContext));
99 /* initialize the value just in case we got "0x30 00", or when the 99 /* initialize the value just in case we got "0x30 00", or when the
100 pathLenConstraint is omitted. 100 pathLenConstraint is omitted.
101 */ 101 */
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 PORT_SetError (SEC_ERROR_BAD_DER); 136 PORT_SetError (SEC_ERROR_BAD_DER);
137 GEN_BREAK (SECFailure); 137 GEN_BREAK (SECFailure);
138 break; 138 break;
139 } 139 }
140 140
141 } while (0); 141 } while (0);
142 PORT_FreeArena (our_pool, PR_FALSE); 142 PORT_FreeArena (our_pool, PR_FALSE);
143 return (rv); 143 return (rv);
144 144
145 } 145 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698