Skip to content

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneWeird authored and dazjo committed Mar 29, 2017
1 parent 05cc17c commit b7a4d2c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 138 deletions.
89 changes: 0 additions & 89 deletions NSPR/NSPR_modified.txt

This file was deleted.

2 changes: 1 addition & 1 deletion NSPR/lib/ds/plarena.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ PR_IMPORT(void) __asan_unpoison_memory_region(void const volatile *addr, size_t
if ((pool)->current == (a)) (pool)->current = &(pool)->first; \
*(pnext) = (a)->next; \
PL_CLEAR_ARENA(a); \
free(a); \
PR_Free(a); \
(a) = 0; \
PR_END_MACRO

Expand Down
6 changes: 3 additions & 3 deletions NSPR/lib/libc/src/strdup.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PL_strdup(const char *s)

n = strlen(s) + 1;

rv = (char *)malloc(n);
rv = (char *)PR_MALLOC(n);
if( (char *)0 == rv ) return rv;

(void)memcpy(rv, s, n);
Expand All @@ -29,7 +29,7 @@ PL_strdup(const char *s)
PR_IMPLEMENT(void)
PL_strfree(char *s)
{
free(s);
PR_Free(s);
}

PR_IMPLEMENT(char *)
Expand All @@ -43,7 +43,7 @@ PL_strndup(const char *s, PRUint32 max)

l = PL_strnlen(s, max);

rv = (char *)malloc(l+1);
rv = (char *)PR_MALLOC(l+1);
if( (char *)0 == rv ) return rv;

(void)memcpy(rv, s, l);
Expand Down
38 changes: 0 additions & 38 deletions NSS/NSS_modified.txt

This file was deleted.

4 changes: 4 additions & 0 deletions NSS/lib/libpkix/pkix_pl_nss/pki/pkix_pl_date.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,11 @@ PKIX_PL_Date_Create_CurrentOffBySeconds(
PKIX_ENTER(DATE, "PKIX_PL_Date_Create_CurrentOffBySeconds");
PKIX_NULLCHECK_ONE(pDate);

#ifdef NN_NINTENDO_SDK
time = PR_Now() + ((PRTime)secondsOffset * 1000000);
#else
time = PR_Now() + PR_SecondsToInterval(secondsOffset);
#endif /* NN_NINTENDO_SDK */
/* create a PKIX_PL_Date object */
PKIX_CHECK(PKIX_PL_Object_Alloc
(PKIX_DATE_TYPE,
Expand Down
16 changes: 9 additions & 7 deletions NSS/lib/libpkix/pkix_pl_nss/pki/pkix_pl_generalname.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,15 @@ pkix_pl_GeneralName_Create(

nameType = nssAltName->type;

/* initialize fields */
genName->type = nameType;
genName->nssGeneralNameList = NULL;
genName->directoryName = NULL;
genName->OthName = NULL;
genName->other = NULL;
genName->oid = NULL;


/*
* We use CERT_CreateGeneralNameList to create just one CERTGeneralName
* item for memory allocation reason. If we want to just create one
Expand All @@ -246,13 +255,6 @@ pkix_pl_GeneralName_Create(

genName->nssGeneralNameList = nssGenNameList;

/* initialize fields */
genName->type = nameType;
genName->directoryName = NULL;
genName->OthName = NULL;
genName->other = NULL;
genName->oid = NULL;

switch (nameType){
case certOtherName:

Expand Down

0 comments on commit b7a4d2c

Please sign in to comment.