Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1303)

Unified Diff: net/third_party/nss/ssl/bodge/secitem_array.c

Issue 16982002: Linux: fix compatibility with nss-3.15 . (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698