Index: crypto/third_party/nss/chromium-prtypes.h |
diff --git a/net/third_party/nss/ssl/bodge/nssrenam.h b/crypto/third_party/nss/chromium-prtypes.h |
similarity index 67% |
copy from net/third_party/nss/ssl/bodge/nssrenam.h |
copy to crypto/third_party/nss/chromium-prtypes.h |
index 156646cdd2d7b8fe3a79edf38b4c18aced98a623..d5ea8a9d20bf3d197684c111655ffd98ba137558 100644 |
--- a/net/third_party/nss/ssl/bodge/nssrenam.h |
+++ b/crypto/third_party/nss/chromium-prtypes.h |
@@ -15,7 +15,7 @@ |
* |
* The Initial Developer of the Original Code is |
* Netscape Communications Corporation. |
- * Portions created by the Initial Developer are Copyright (C) 2001 |
+ * Portions created by the Initial Developer are Copyright (C) 2002 |
* the Initial Developer. All Rights Reserved. |
* |
* Contributor(s): |
@@ -34,14 +34,44 @@ |
* |
* ***** END LICENSE BLOCK ***** */ |
-#ifndef __nssrenam_h_ |
-#define __nssrenam_h_ |
+/* Emulates the real prtypes.h. Defines the types and macros that sha512.cc |
+ * needs. */ |
-#define CERT_AddTempCertToPerm __CERT_AddTempCertToPerm |
-#define PK11_CreateContextByRawKey __PK11_CreateContextByRawKey |
-#define CERT_ClosePermCertDB __CERT_ClosePermCertDB |
-#define CERT_DecodeDERCertificate __CERT_DecodeDERCertificate |
-#define CERT_TraversePermCertsForNickname __CERT_TraversePermCertsForNickname |
-#define CERT_TraversePermCertsForSubject __CERT_TraversePermCertsForSubject |
+#ifndef CRYPTO_THIRD_PARTY_NSS_CHROMIUM_PRTYPES_H_ |
+#define CRYPTO_THIRD_PARTY_NSS_CHROMIUM_PRTYPES_H_ |
-#endif /* __nssrenam_h_ */ |
+#include <limits.h> |
+#include <stdint.h> |
+ |
+#include "build/build_config.h" |
+ |
+#if defined(ARCH_CPU_LITTLE_ENDIAN) |
+#define IS_LITTLE_ENDIAN 1 |
+#else |
+#define IS_BIG_ENDIAN 1 |
+#endif |
+ |
+/* |
+ * The C language requires that 'long' be at least 32 bits. 2147483647 is the |
+ * largest signed 32-bit integer. |
+ */ |
+#if LONG_MAX > 2147483647L |
+#define PR_BYTES_PER_LONG 8 |
+#else |
+#define PR_BYTES_PER_LONG 4 |
+#endif |
+ |
+#define HAVE_LONG_LONG |
+ |
+#if defined(__linux__) |
+#define LINUX |
+#endif |
+ |
+typedef uint8_t PRUint8; |
+typedef uint32_t PRUint32; |
+ |
+typedef int PRBool; |
+ |
+#define PR_MIN(x,y) ((x)<(y)?(x):(y)) |
+ |
+#endif /* CRYPTO_THIRD_PARTY_NSS_CHROMIUM_PRTYPES_H_ */ |