~myers-1/pyopenssl/npn

« back to all changes in this revision

Viewing changes to doc/html/openssl-crypto.html

  • Committer: Jean-Paul Calderone
  • Date: 2010-01-25 22:55:30 UTC
  • mfrom: (126 trunk)
  • mto: This revision was merged to the branch mainline in revision 129.
  • Revision ID: exarkun@divmod.com-20100125225530-5e9nsb6bzoesoz42
merge trunk and resolve simple conflict

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
<table align="center" width="100%" cellpadding="0" cellspacing="2">
18
18
<tr>
19
19
<td><A href="openssl.html"><img src="previous.gif"
20
 
border="0" height="32"
 
20
  border="0" height="32"
21
21
  alt="Previous Page" width="32"></A></td>
22
22
<td><A href="openssl.html"><img src="up.gif"
23
 
border="0" height="32"
 
23
  border="0" height="32"
24
24
  alt="Up One Level" width="32"></A></td>
25
25
<td><A href="openssl-x509.html"><img src="next.gif"
26
 
border="0" height="32"
 
26
  border="0" height="32"
27
27
  alt="Next Page" width="32"></A></td>
28
28
<td align="center" width="100%">Python OpenSSL Manual</td>
29
29
<td><A href="contents.html"><img src="contents.gif"
30
 
border="0" height="32"
 
30
  border="0" height="32"
31
31
  alt="Contents" width="32"></A></td>
32
32
<td><img src="blank.gif"
33
33
  border="0" height="32"
42
42
<br><hr>
43
43
</DIV>
44
44
<!--End of Navigation Panel-->
 
45
 
45
46
<H2><A NAME="SECTION000410000000000000000">&nbsp;</A>
46
47
<BR>
47
48
3.1 <tt class="module">crypto</tt> -- Generic cryptographic module 
53
54
<P>
54
55
<dl><dt><b><a name='l2h-6'><tt>X509Type</tt></a></b>
55
56
<dd>
56
 
A Python type object representing the X509 object type.
 
57
See <tt class="class">X509</tt>.
57
58
</dl>
58
59
 
59
60
<P>
60
 
<dl><dt><b><a name='l2h-7'><tt class='function'>X509</tt></a></b>()
 
61
<dl><dt><b>class <a name='l2h-7'><tt class='class'>X509</tt></a></b>()
61
62
<dd>
62
 
Factory function that creates an X509 object.
 
63
A class representing X.509 certificates.
63
64
</dl>
64
65
 
65
66
<P>
66
67
<dl><dt><b><a name='l2h-8'><tt>X509NameType</tt></a></b>
67
68
<dd>
68
 
A Python type object representing the X509Name object type.
 
69
See <tt class="class">X509Name</tt>.
69
70
</dl>
70
71
 
71
72
<P>
72
 
<dl><dt><b><a name='l2h-9'><tt class='function'>X509Name</tt></a></b>(<var>x509name</var>)
 
73
<dl><dt><b>class <a name='l2h-9'><tt class='class'>X509Name</tt></a></b>(<var>x509name</var>)
73
74
<dd>
74
 
Factory function that creates a copy of <var>x509name</var>.
 
75
A class representing X.509 Distinguished Names.
 
76
 
 
77
<P>
 
78
This constructor creates a copy of <var>x509name</var> which should be an
 
79
instance of <tt class="class">X509Name</tt>.
75
80
</dl>
76
81
 
77
82
<P>
78
83
<dl><dt><b><a name='l2h-10'><tt>X509ReqType</tt></a></b>
79
84
<dd>
80
 
A Python type object representing the X509Req object type.
 
85
See <tt class="class">X509Req</tt>.
81
86
</dl>
82
87
 
83
88
<P>
84
 
<dl><dt><b><a name='l2h-11'><tt class='function'>X509Req</tt></a></b>()
 
89
<dl><dt><b>class <a name='l2h-11'><tt class='class'>X509Req</tt></a></b>()
85
90
<dd>
86
 
Factory function that creates an X509Req object.
 
91
A class representing X.509 certificate requests.
87
92
</dl>
88
93
 
89
94
<P>
95
100
<P>
96
101
<dl><dt><b><a name='l2h-13'><tt>PKeyType</tt></a></b>
97
102
<dd>
98
 
A Python type object representing the PKey object type.
 
103
See <tt class="class">PKey</tt>.
99
104
</dl>
100
105
 
101
106
<P>
102
 
<dl><dt><b><a name='l2h-14'><tt class='function'>PKey</tt></a></b>()
 
107
<dl><dt><b>class <a name='l2h-14'><tt class='class'>PKey</tt></a></b>()
103
108
<dd>
104
 
Factory function that creates a PKey object.
 
109
A class representing DSA or RSA keys.
105
110
</dl>
106
111
 
107
112
<P>
119
124
<P>
120
125
<dl><dt><b><a name='l2h-17'><tt>X509ExtensionType</tt></a></b>
121
126
<dd>
122
 
A Python type object representing the X509Extension object type.
 
127
See <tt class="class">X509Extension</tt>.
123
128
</dl>
124
129
 
125
130
<P>
126
 
<dl><dt><b><a name='l2h-18'><tt class='function'>X509Extension</tt></a></b>(<var>typename, critical, value</var>)
 
131
<dl><dt><b>class <a name='l2h-18'><tt class='class'>X509Extension</tt></a></b>(<var>typename, critical, value</var><big>[</big><var>, subject</var><big>]</big><big>[</big><var>, issuer</var><big>]</big>)
127
132
<dd>
128
 
Factory function that creates a X509Extension object.
 
133
A class representing an X.509 v3 certificate extensions.
 
134
See <a class="url" href="http://openssl.org/docs/apps/x509v3_config.html#STANDARD_EXTENSIONS">http://openssl.org/docs/apps/x509v3_config.html#STANDARD_EXTENSIONS</a>for <var>typename</var> strings and their options.
 
135
Optional parameters <var>subject</var> and <var>issuer</var> must be X509 objects.
129
136
</dl>
130
137
 
131
138
<P>
132
139
<dl><dt><b><a name='l2h-19'><tt>NetscapeSPKIType</tt></a></b>
133
140
<dd>
134
 
A Python type object representing the NetscapeSPKI object type.
 
141
See <tt class="class">NetscapeSPKI</tt>.
135
142
</dl>
136
143
 
137
144
<P>
138
 
<dl><dt><b><a name='l2h-20'><tt class='function'>NetscapeSPKI</tt></a></b>(<big>[</big><var>enc</var><big>]</big>)
 
145
<dl><dt><b>class <a name='l2h-20'><tt class='class'>NetscapeSPKI</tt></a></b>(<big>[</big><var>enc</var><big>]</big>)
139
146
<dd>
140
 
Factory function that creates a NetscapeSPKI object. If the <var>enc</var> argument
141
 
is present, it should be a base64-encoded string representing a NetscapeSPKI
142
 
object, as returned by the <tt class="method">b64_encode</tt> method.
 
147
A class representing Netscape SPKI objects.
 
148
 
 
149
<P>
 
150
If the <var>enc</var> argument is present, it should be a base64-encoded string
 
151
representing a NetscapeSPKI object, as returned by the <tt class="method">b64_encode</tt>
 
152
method.
143
153
</dl>
144
154
 
145
155
<P>
224
234
<dl><dt><b><a name='l2h-31'><tt class='function'>load_pkcs12</tt></a></b>(<var>buffer</var><big>[</big><var>, passphrase</var><big>]</big>)
225
235
<dd>
226
236
Load pkcs12 data from the string <var>buffer</var>. If the pkcs12 structure is
227
 
encrypted, a <var>passphrase</var> must be included.
 
237
encrypted, a <var>passphrase</var> must be included.  The MAC is always
 
238
checked and thus required.
 
239
 
 
240
<P>
 
241
See also the man page for the C function <tt class="function">PKCS12_parse</tt>.
228
242
</dl>
229
243
 
230
244
<P>
231
245
 
232
246
<p><hr>
233
 
 
234
247
<!--Table of Child-Links-->
235
248
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
236
249
 
261
274
<table align="center" width="100%" cellpadding="0" cellspacing="2">
262
275
<tr>
263
276
<td><A href="openssl.html"><img src="previous.gif"
264
 
border="0" height="32"
 
277
  border="0" height="32"
265
278
  alt="Previous Page" width="32"></A></td>
266
279
<td><A href="openssl.html"><img src="up.gif"
267
 
border="0" height="32"
 
280
  border="0" height="32"
268
281
  alt="Up One Level" width="32"></A></td>
269
282
<td><A href="openssl-x509.html"><img src="next.gif"
270
 
border="0" height="32"
 
283
  border="0" height="32"
271
284
  alt="Next Page" width="32"></A></td>
272
285
<td align="center" width="100%">Python OpenSSL Manual</td>
273
286
<td><A href="contents.html"><img src="contents.gif"
274
 
border="0" height="32"
 
287
  border="0" height="32"
275
288
  alt="Contents" width="32"></A></td>
276
289
<td><img src="blank.gif"
277
290
  border="0" height="32"
284
297
<b class="navlabel">Up:</b> <a class="sectref" href="openssl.html">3 OpenSSL  </A>
285
298
<b class="navlabel">Next:</b> <a class="sectref" href="openssl-x509.html">3.1.1 X509 objects</A>
286
299
<hr>
287
 
<span class="release-info">Release 0.9.</span>
 
300
<span class="release-info">Release 0.10.</span>
288
301
</DIV>
289
302
<!--End of Navigation Panel-->
290
303