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

Side by Side Diff: nss/lib/certhigh/xcrldist.c

Issue 1504923011: Update NSS to 3.21 RTM and NSPR to 4.11 RTM (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Created 5 years 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 * Code for dealing with x.509 v3 CRL Distribution Point extension. 6 * Code for dealing with x.509 v3 CRL Distribution Point extension.
7 */ 7 */
8 #include "genname.h" 8 #include "genname.h"
9 #include "certt.h" 9 #include "certt.h"
10 #include "secerr.h" 10 #include "secerr.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 point, FullNameTemplate)) 94 point, FullNameTemplate))
95 rv = SECFailure; 95 rv = SECFailure;
96 break; 96 break;
97 97
98 case relativeDistinguishedName: 98 case relativeDistinguishedName:
99 if (!SEC_ASN1EncodeItem(ourPool, &point->derDistPoint, 99 if (!SEC_ASN1EncodeItem(ourPool, &point->derDistPoint,
100 point, RelativeNameTemplate)) 100 point, RelativeNameTemplate))
101 rv = SECFailure; 101 rv = SECFailure;
102 break; 102 break;
103 103
104 /* distributionPointName is omitted */
105 case 0: break;
106
107 default: 104 default:
108 PORT_SetError (SEC_ERROR_EXTENSION_VALUE_INVALID); 105 PORT_SetError (SEC_ERROR_EXTENSION_VALUE_INVALID);
109 rv = SECFailure; 106 rv = SECFailure;
110 break; 107 break;
111 } 108 }
112 109
113 if (rv != SECSuccess) 110 if (rv != SECSuccess)
114 break; 111 break;
115 112
116 if (point->reasons.data) 113 if (point->reasons.data)
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 point->crlIssuer = cert_DecodeGeneralNames(arena, 205 point->crlIssuer = cert_DecodeGeneralNames(arena,
209 point->derCrlIssuer); 206 point->derCrlIssuer);
210 if (!point->crlIssuer) 207 if (!point->crlIssuer)
211 break; 208 break;
212 } 209 }
213 ++pointList; 210 ++pointList;
214 } /* end while points remain */ 211 } /* end while points remain */
215 } while (0); 212 } while (0);
216 return (rv == SECSuccess ? value : NULL); 213 return (rv == SECSuccess ? value : NULL);
217 } 214 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698