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

Unified Diff: nss/patches/nss-dertime.patch

Issue 593027: Update NSS and NSPR to NSS_3_12_6_BETA1 and NSPR_4_8_4_BETA1.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « nss/patches/nspr-warnings.patch ('k') | nss/patches/nss-nssinit.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nss/patches/nss-dertime.patch
===================================================================
--- nss/patches/nss-dertime.patch (revision 38521)
+++ nss/patches/nss-dertime.patch (working copy)
@@ -1,83 +0,0 @@
-Index: mozilla/security/nss/lib/util/dertime.c
-===================================================================
-RCS file: /cvsroot/mozilla/security/nss/lib/util/dertime.c,v
-retrieving revision 1.13
-diff -u -p -u -8 -r1.13 dertime.c
---- mozilla/security/nss/lib/util/dertime.c 29 Dec 2009 02:57:28 -0000 1.13
-+++ mozilla/security/nss/lib/util/dertime.c 21 Jan 2010 22:34:30 -0000
-@@ -108,17 +108,17 @@ DER_TimeToUTCTimeArena(PRArenaPool* aren
- SECStatus
- DER_TimeToUTCTime(SECItem *dst, int64 gmttime)
- {
- return DER_TimeToUTCTimeArena(NULL, dst, gmttime);
- }
-
- static SECStatus /* forward */
- der_TimeStringToTime(PRTime *dst, const char *string, int generalized,
-- char **endptr);
-+ const char **endptr);
-
- #define GEN_STRING 2 /* TimeString is a GeneralizedTime */
- #define UTC_STRING 0 /* TimeString is a UTCTime */
-
- /* The caller of DER_AsciiToItem MUST ENSURE that either
- ** a) "string" points to a null-terminated ASCII string, or
- ** b) "string" points to a buffer containing a valid UTCTime,
- ** whether null terminated or not, or
-@@ -136,17 +136,17 @@ SECStatus
- DER_UTCTimeToTime(int64 *dst, const SECItem *time)
- {
- /* Minimum valid UTCTime is yymmddhhmmZ which is 11 bytes.
- ** Maximum valid UTCTime is yymmddhhmmss+0000 which is 17 bytes.
- ** 20 should be large enough for all valid encoded times.
- */
- unsigned int i;
- char localBuf[20];
-- char *end = NULL;
-+ const char *end = NULL;
- SECStatus rv;
-
- if (!time || !time->data || time->len < 11 || time->len > 17) {
- PORT_SetError(SEC_ERROR_INVALID_TIME);
- return SECFailure;
- }
-
- for (i = 0; i < time->len; i++) {
-@@ -230,17 +230,17 @@ SECStatus
- DER_GeneralizedTimeToTime(int64 *dst, const SECItem *time)
- {
- /* Minimum valid GeneralizedTime is ccyymmddhhmmZ which is 13 bytes.
- ** Maximum valid GeneralizedTime is ccyymmddhhmmss+0000 which is 19 bytes.
- ** 20 should be large enough for all valid encoded times.
- */
- unsigned int i;
- char localBuf[20];
-- char *end = NULL;
-+ const char *end = NULL;
- SECStatus rv;
-
- if (!time || !time->data || time->len < 13 || time->len > 19) {
- PORT_SetError(SEC_ERROR_INVALID_TIME);
- return SECFailure;
- }
-
- for (i = 0; i < time->len; i++) {
-@@ -257,17 +257,17 @@ DER_GeneralizedTimeToTime(int64 *dst, co
- PORT_SetError(SEC_ERROR_INVALID_TIME);
- return SECFailure;
- }
- return rv;
- }
-
- static SECStatus
- der_TimeStringToTime(PRTime *dst, const char *string, int generalized,
-- char **endptr)
-+ const char **endptr)
- {
- PRExplodedTime genTime;
- long hourOff = 0, minOff = 0;
- uint16 century;
- char signum;
-
- if (string == NULL || dst == NULL) {
- PORT_SetError(SEC_ERROR_INVALID_ARGS);
« no previous file with comments | « nss/patches/nspr-warnings.patch ('k') | nss/patches/nss-nssinit.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698