| OLD | NEW |
| 1 /* ***** BEGIN LICENSE BLOCK ***** | 1 /* ***** BEGIN LICENSE BLOCK ***** |
| 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 3 * | 3 * |
| 4 * The contents of this file are subject to the Mozilla Public License Version | 4 * The contents of this file are subject to the Mozilla Public License Version |
| 5 * 1.1 (the "License"); you may not use this file except in compliance with | 5 * 1.1 (the "License"); you may not use this file except in compliance with |
| 6 * the License. You may obtain a copy of the License at | 6 * the License. You may obtain a copy of the License at |
| 7 * http://www.mozilla.org/MPL/ | 7 * http://www.mozilla.org/MPL/ |
| 8 * | 8 * |
| 9 * Software distributed under the License is distributed on an "AS IS" basis, | 9 * Software distributed under the License is distributed on an "AS IS" basis, |
| 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 * | 35 * |
| 36 * ***** END LICENSE BLOCK ***** */ | 36 * ***** END LICENSE BLOCK ***** */ |
| 37 | 37 |
| 38 #include "secoid.h" | 38 #include "secoid.h" |
| 39 #include "pkcs11t.h" | 39 #include "pkcs11t.h" |
| 40 #include "secitem.h" | 40 #include "secitem.h" |
| 41 #include "secerr.h" | 41 #include "secerr.h" |
| 42 #include "prenv.h" | 42 #include "prenv.h" |
| 43 #include "plhash.h" | 43 #include "plhash.h" |
| 44 #include "nssrwlk.h" | 44 #include "nssrwlk.h" |
| 45 #include "nssutil.h" |
| 46 |
| 47 /* Library identity and versioning */ |
| 48 |
| 49 #if defined(DEBUG) |
| 50 #define _DEBUG_STRING " (debug)" |
| 51 #else |
| 52 #define _DEBUG_STRING "" |
| 53 #endif |
| 54 |
| 55 /* |
| 56 * Version information for the 'ident' and 'what commands |
| 57 * |
| 58 * NOTE: the first component of the concatenated rcsid string |
| 59 * must not end in a '$' to prevent rcs keyword substitution. |
| 60 */ |
| 61 const char __nss_util_rcsid[] = "$Header: NSS " NSSUTIL_VERSION _DEBUG_STRING |
| 62 " " __DATE__ " " __TIME__ " $"; |
| 63 const char __nss_util_sccsid[] = "@(#)NSS " NSSUTIL_VERSION _DEBUG_STRING |
| 64 " " __DATE__ " " __TIME__; |
| 45 | 65 |
| 46 /* MISSI Mosaic Object ID space */ | 66 /* MISSI Mosaic Object ID space */ |
| 47 #define USGOV 0x60, 0x86, 0x48, 0x01, 0x65 | 67 #define USGOV 0x60, 0x86, 0x48, 0x01, 0x65 |
| 48 #define MISSI USGOV, 0x02, 0x01, 0x01 | 68 #define MISSI USGOV, 0x02, 0x01, 0x01 |
| 49 #define MISSI_OLD_KEA_DSS MISSI, 0x0c | 69 #define MISSI_OLD_KEA_DSS MISSI, 0x0c |
| 50 #define MISSI_OLD_DSS MISSI, 0x02 | 70 #define MISSI_OLD_DSS MISSI, 0x02 |
| 51 #define MISSI_KEA_DSS MISSI, 0x14 | 71 #define MISSI_KEA_DSS MISSI, 0x14 |
| 52 #define MISSI_DSS MISSI, 0x13 | 72 #define MISSI_DSS MISSI, 0x13 |
| 53 #define MISSI_KEA MISSI, 0x0a | 73 #define MISSI_KEA MISSI, 0x0a |
| 54 #define MISSI_ALT_KEA MISSI, 0x16 | 74 #define MISSI_ALT_KEA MISSI, 0x16 |
| (...skipping 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1854 PORT_Free(myVal); /* can handle NULL argument OK */ | 1874 PORT_Free(myVal); /* can handle NULL argument OK */ |
| 1855 } | 1875 } |
| 1856 | 1876 |
| 1857 SECStatus | 1877 SECStatus |
| 1858 SECOID_Init(void) | 1878 SECOID_Init(void) |
| 1859 { | 1879 { |
| 1860 PLHashEntry *entry; | 1880 PLHashEntry *entry; |
| 1861 const SECOidData *oid; | 1881 const SECOidData *oid; |
| 1862 int i; | 1882 int i; |
| 1863 char * envVal; | 1883 char * envVal; |
| 1884 volatile char c; /* force a reference that won't get optimized away */ |
| 1885 |
| 1886 c = __nss_util_rcsid[0] + __nss_util_sccsid[0]; |
| 1864 | 1887 |
| 1865 if (oidhash) { | 1888 if (oidhash) { |
| 1866 return SECSuccess; /* already initialized */ | 1889 return SECSuccess; /* already initialized */ |
| 1867 } | 1890 } |
| 1868 | 1891 |
| 1869 if (!PR_GetEnv("NSS_ALLOW_WEAK_SIGNATURE_ALG")) { | 1892 if (!PR_GetEnv("NSS_ALLOW_WEAK_SIGNATURE_ALG")) { |
| 1870 /* initialize any policy flags that are disabled by default */ | 1893 /* initialize any policy flags that are disabled by default */ |
| 1871 xOids[SEC_OID_MD2 ].notPolicyFlags = ~0; | 1894 xOids[SEC_OID_MD2 ].notPolicyFlags = ~0; |
| 1872 xOids[SEC_OID_MD4 ].notPolicyFlags = ~0; | 1895 xOids[SEC_OID_MD4 ].notPolicyFlags = ~0; |
| 1873 xOids[SEC_OID_PKCS1_MD2_WITH_RSA_ENCRYPTION ].notPolicyFlags = ~0; | 1896 xOids[SEC_OID_PKCS1_MD2_WITH_RSA_ENCRYPTION ].notPolicyFlags = ~0; |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2120 memset(xOids, 0, sizeof xOids); | 2143 memset(xOids, 0, sizeof xOids); |
| 2121 return SECSuccess; | 2144 return SECSuccess; |
| 2122 } | 2145 } |
| 2123 | 2146 |
| 2124 void UTIL_SetForkState(PRBool forked) | 2147 void UTIL_SetForkState(PRBool forked) |
| 2125 { | 2148 { |
| 2126 parentForkedAfterC_Initialize = forked; | 2149 parentForkedAfterC_Initialize = forked; |
| 2127 } | 2150 } |
| 2128 | 2151 |
| 2129 | 2152 |
| OLD | NEW |