Index: net/third_party/nss/ssl/bodge/secitem_array.c |
diff --git a/net/third_party/nss/ssl/bodge/secitem_array.c b/net/third_party/nss/ssl/bodge/secitem_array.c |
index ac80da8e4770106c4b50cc4e4c205c4183d2ad69..1f12c426c10bb3914352b19855945fcd778b240e 100644 |
--- a/net/third_party/nss/ssl/bodge/secitem_array.c |
+++ b/net/third_party/nss/ssl/bodge/secitem_array.c |
@@ -6,6 +6,7 @@ |
* Support routines for SECItemArray data structure. |
*/ |
+#include "nss.h" |
wtc
2013/06/13 18:20:31
Please include "nssutil.h" and use the NSSUTIL_xxx
Paweł Hajdan Jr.
2013/06/13 18:58:32
I'm mirroring the solution from net/cert/cert_veri
wtc
2013/06/13 21:07:33
The NSS libraries can be grouped into three packag
Paweł Hajdan Jr.
2013/06/13 21:29:56
Ah, I see now. Correctness and understanding were
|
#include "seccomon.h" |
#include "secitem.h" |
#include "secerr.h" |
@@ -13,10 +14,14 @@ |
typedef struct SECItemArrayStr SECItemArray; |
+#define NSS_VERSION_NUM (NSS_VMAJOR * 10000 + NSS_VMINOR * 100 + NSS_VPATCH) |
+#if NSS_VERSION_NUM < 31500 |
wtc
2013/06/13 18:20:31
Optional: You can just test NSSUTIL_VMINOR < 15.
Paweł Hajdan Jr.
2013/06/13 18:58:32
I think the current version is more robust, e.g. a
wtc
2013/06/13 21:07:33
Because NSS 3.x is widely used, it is unlikely tha
Paweł Hajdan Jr.
2013/06/13 21:29:56
Preserved current code then.
|
+// Added in NSS 3.15. |
struct SECItemArrayStr { |
SECItem *items; |
unsigned int len; |
}; |
+#endif |
SECItemArray * |
SECITEM_AllocArray(PLArenaPool *arena, SECItemArray *array, unsigned int len) |