Advertisement
nezuku

diff-NintendoSwitch_OpenSources1.0.0-2.1.0

Mar 29th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.56 KB | None | 0 0
  1. --- NSS/lib/libpkix/pkix_pl_nss/pki/pkix_pl_date.c  Wed Mar 23 14:46:06 2016
  2. +++ NSS/lib/libpkix/pkix_pl_nss/pki/pkix_pl_date.c  Wed Feb 01 11:44:18 2017
  3. @@ -433,7 +433,11 @@
  4.          PKIX_ENTER(DATE, "PKIX_PL_Date_Create_CurrentOffBySeconds");
  5.          PKIX_NULLCHECK_ONE(pDate);
  6.  
  7. +#ifdef NN_NINTENDO_SDK
  8. +        time = PR_Now() + ((PRTime)secondsOffset * 1000000);
  9. +#else
  10.          time = PR_Now() + PR_SecondsToInterval(secondsOffset);
  11. +#endif    /*  NN_NINTENDO_SDK  */
  12.          /* create a PKIX_PL_Date object */
  13.          PKIX_CHECK(PKIX_PL_Object_Alloc
  14.                      (PKIX_DATE_TYPE,
  15. --- NSS/lib/libpkix/pkix_pl_nss/pki/pkix_pl_generalname.c   Wed Mar 23 14:46:06 2016
  16. +++ NSS/lib/libpkix/pkix_pl_nss/pki/pkix_pl_generalname.c   Fri Jan 20 13:05:08 2017
  17. @@ -222,6 +222,15 @@
  18.  
  19.          nameType = nssAltName->type;
  20.  
  21. +        /* initialize fields */
  22. +        genName->type = nameType;
  23. +        genName->nssGeneralNameList = NULL;
  24. +        genName->directoryName = NULL;
  25. +        genName->OthName = NULL;
  26. +        genName->other = NULL;
  27. +        genName->oid = NULL;
  28. +
  29. +
  30.          /*
  31.           * We use CERT_CreateGeneralNameList to create just one CERTGeneralName
  32.           * item for memory allocation reason. If we want to just create one
  33. @@ -245,13 +254,6 @@
  34.          }
  35.  
  36.          genName->nssGeneralNameList = nssGenNameList;
  37. -
  38. -        /* initialize fields */
  39. -        genName->type = nameType;
  40. -        genName->directoryName = NULL;
  41. -        genName->OthName = NULL;
  42. -        genName->other = NULL;
  43. -        genName->oid = NULL;
  44.  
  45.          switch (nameType){
  46.          case certOtherName:
  47. --- NSPR/lib/ds/plarena.h   Fri Oct 21 09:44:00 2016
  48. +++ NSPR/lib/ds/plarena.h   Wed Feb 01 11:44:12 2017
  49. @@ -221,7 +221,7 @@
  50.          if ((pool)->current == (a)) (pool)->current = &(pool)->first; \
  51.          *(pnext) = (a)->next; \
  52.          PL_CLEAR_ARENA(a); \
  53. -        free(a); \
  54. +        PR_Free(a); \
  55.          (a) = 0; \
  56.      PR_END_MACRO
  57.  
  58. --- NSPR/lib/libc/src/strdup.c  Wed Mar 23 14:45:56 2016
  59. +++ NSPR/lib/libc/src/strdup.c  Wed Feb 01 11:44:12 2017
  60. @@ -18,7 +18,7 @@
  61.  
  62.      n = strlen(s) + 1;
  63.  
  64. -    rv = (char *)malloc(n);
  65. +    rv = (char *)PR_MALLOC(n);
  66.      if( (char *)0 == rv ) return rv;
  67.  
  68.      (void)memcpy(rv, s, n);
  69. @@ -29,7 +29,7 @@
  70.  PR_IMPLEMENT(void)
  71.  PL_strfree(char *s)
  72.  {
  73. -    free(s);
  74. +    PR_Free(s);
  75.  }
  76.  
  77.  PR_IMPLEMENT(char *)
  78. @@ -43,7 +43,7 @@
  79.  
  80.      l = PL_strnlen(s, max);
  81.  
  82. -    rv = (char *)malloc(l+1);
  83. +    rv = (char *)PR_MALLOC(l+1);
  84.      if( (char *)0 == rv ) return rv;
  85.  
  86.      (void)memcpy(rv, s, l);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement