1 diff --git a/ssl/sslimpl.h b/ssl/sslimpl.h
2 index 0ece0ed..ea71975 100644
5 @@ -1373,6 +1373,15 @@ extern sslSessionIDUncacheFunc ssl_sid_uncache;
9 +/* Functions for handling SECItemArrays, added in NSS 3.15 */
10 +extern SECItemArray *SECITEM_AllocArray(PLArenaPool *arena,
11 + SECItemArray *array,
13 +extern SECItemArray *SECITEM_DupArray(PLArenaPool *arena,
14 + const SECItemArray *from);
15 +extern void SECITEM_FreeArray(SECItemArray *array, PRBool freeit);
16 +extern void SECITEM_ZfreeArray(SECItemArray *array, PRBool freeit);
18 /* Internal initialization and installation of the SSL error tables */
19 extern SECStatus ssl_Init(void);
20 extern SECStatus ssl_InitializePRErrorTable(void);
21 diff --git a/ssl/sslt.h b/ssl/sslt.h
22 index 0900f28..430d216 100644
29 +/* SECItemArray is added in NSS 3.15. Define the type if compiling
30 +** against an older version of NSS.
33 +#if NSSUTIL_VMAJOR == 3 && NSSUTIL_VMINOR < 15
34 +typedef struct SECItemArrayStr SECItemArray;
36 +struct SECItemArrayStr {
40 +#endif /* NSSUTIL_VMAJOR == 3 && NSSUTIL_VMINOR < 15 */
42 typedef struct SSL3StatisticsStr {
43 /* statistics from ssl3_SendClientHello (sch) */
44 long sch_sid_cache_hits;