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

Side by Side Diff: nss/lib/base/nssbaset.h

Issue 1843333003: Update NSPR to 4.12 and NSS to 3.23 on iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 /* This Source Code Form is subject to the terms of the Mozilla Public 1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 4
5 #ifndef NSSBASET_H 5 #ifndef NSSBASET_H
6 #define NSSBASET_H 6 #define NSSBASET_H
7 7
8 /* 8 /*
9 * nssbaset.h 9 * nssbaset.h
10 * 10 *
11 * This file contains the most low-level, fundamental public types. 11 * This file contains the most low-level, fundamental public types.
12 */ 12 */
13 13
14 #include "nspr.h" 14 #include "nspr.h"
15 #include "nssilock.h" 15 #include "nssilock.h"
16 16
17 /* 17 /*
18 * NSS_EXTERN, NSS_IMPLEMENT, NSS_EXTERN_DATA, NSS_IMPLEMENT_DATA 18 * NSS_EXTERN, NSS_IMPLEMENT, NSS_EXTERN_DATA, NSS_IMPLEMENT_DATA
19 * 19 *
20 * NSS has its own versions of these NSPR macros, in a form which 20 * NSS has its own versions of these NSPR macros, in a form which
21 * does not confuse ctags and other related utilities. NSPR 21 * does not confuse ctags and other related utilities. NSPR
22 * defines these macros to take the type as an argument, because 22 * defines these macros to take the type as an argument, because
23 * of certain OS requirements on platforms not supported by NSS. 23 * of certain OS requirements on platforms not supported by NSS.
24 */ 24 */
25 25
26 #define DUMMY» /* dummy */ 26 #define DUMMY /* dummy */
27 #define NSS_EXTERN extern 27 #define NSS_EXTERN extern
28 #define NSS_EXTERN_DATA extern 28 #define NSS_EXTERN_DATA extern
29 #define NSS_IMPLEMENT 29 #define NSS_IMPLEMENT
30 #define NSS_IMPLEMENT_DATA 30 #define NSS_IMPLEMENT_DATA
31 31
32 PR_BEGIN_EXTERN_C 32 PR_BEGIN_EXTERN_C
33 33
34 /* 34 /*
35 * NSSError 35 * NSSError
36 * 36 *
37 * Calls to NSS routines may result in one or more errors being placed 37 * Calls to NSS routines may result in one or more errors being placed
38 * on the calling thread's "error stack." Every possible error that 38 * on the calling thread's "error stack." Every possible error that
39 * may be returned from a function is declared where the function is 39 * may be returned from a function is declared where the function is
40 * prototyped. All errors are of the following type. 40 * prototyped. All errors are of the following type.
41 */ 41 */
42 42
43 typedef PRInt32 NSSError; 43 typedef PRInt32 NSSError;
44 44
45 /* 45 /*
46 * NSSArena 46 * NSSArena
47 * 47 *
48 * Arenas are logical sets of heap memory, from which memory may be 48 * Arenas are logical sets of heap memory, from which memory may be
49 * allocated. When an arena is destroyed, all memory allocated within 49 * allocated. When an arena is destroyed, all memory allocated within
50 * that arena is implicitly freed. These arenas are thread-safe: 50 * that arena is implicitly freed. These arenas are thread-safe:
51 * an arena pointer may be used by multiple threads simultaneously. 51 * an arena pointer may be used by multiple threads simultaneously.
52 * However, as they are not backed by shared memory, they may only be 52 * However, as they are not backed by shared memory, they may only be
53 * used within one process. 53 * used within one process.
54 */ 54 */
55 55
56 struct NSSArenaStr; 56 struct NSSArenaStr;
57 typedef struct NSSArenaStr NSSArena; 57 typedef struct NSSArenaStr NSSArena;
58 58
59 /* 59 /*
60 * NSSItem 60 * NSSItem
61 * 61 *
62 * This is the basic type used to refer to an unconstrained datum of 62 * This is the basic type used to refer to an unconstrained datum of
63 * arbitrary size. 63 * arbitrary size.
64 */ 64 */
65 65
66 struct NSSItemStr { 66 struct NSSItemStr {
67 void *data; 67 void *data;
68 PRUint32 size; 68 PRUint32 size;
69 }; 69 };
70 typedef struct NSSItemStr NSSItem; 70 typedef struct NSSItemStr NSSItem;
71 71
72
73 /* 72 /*
74 * NSSBER 73 * NSSBER
75 * 74 *
76 * Data packed according to the Basic Encoding Rules of ASN.1. 75 * Data packed according to the Basic Encoding Rules of ASN.1.
77 */ 76 */
78 77
79 typedef NSSItem NSSBER; 78 typedef NSSItem NSSBER;
80 79
81 /* 80 /*
82 * NSSDER 81 * NSSDER
(...skipping 27 matching lines...) Expand all
110 * NSSASCII7 109 * NSSASCII7
111 * 110 *
112 * Character strings guaranteed to be 7-bit ASCII. 111 * Character strings guaranteed to be 7-bit ASCII.
113 */ 112 */
114 113
115 typedef char NSSASCII7; 114 typedef char NSSASCII7;
116 115
117 PR_END_EXTERN_C 116 PR_END_EXTERN_C
118 117
119 #endif /* NSSBASET_H */ 118 #endif /* NSSBASET_H */
OLDNEW
« no previous file with comments | « nss/lib/base/nssbase.h ('k') | nss/lib/base/nssutf8.c » ('j') | nss/lib/util/secoid.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698