~myers-1/pyopenssl/npn

« back to all changes in this revision

Viewing changes to doc/pyOpenSSL.tex

  • Committer: Jean-Paul Calderone
  • Date: 2011-04-07 02:19:52 UTC
  • mfrom: (142.1.13 subjectAltName)
  • Revision ID: exarkun@divmod.com-20110407021952-c464twfn6f3j0uvf
Add more access to certificate extension data

Show diffs side-by-side

added added

removed removed

Lines of Context:
269
269
 
270
270
\begin{funcdesc}{load_crl}{type, buffer}
271
271
Load Certificate Revocation List (CRL) data from a string \var{buffer}.
272
 
\var{buffer} encoded with the type \var{type}.  The type \var{type} 
 
272
\var{buffer} encoded with the type \var{type}.  The type \var{type}
273
273
must either \constant{FILETYPE_PEM} or \constant{FILETYPE_ASN1}).
274
274
\end{funcdesc}
275
275
 
305
305
\versionadded{0.11}
306
306
\end{funcdesc}
307
307
 
 
308
\subsubsection{X509Extension objects \label{openssl-x509ext}}
 
309
 
 
310
X509Extension objects have the following methods:
 
311
 
 
312
\begin{methoddesc}[X509Extension]{get_short_name}{}
 
313
Retrieve the short descriptive name for this extension.
 
314
 
 
315
The result is a byte string like \code{``basicConstraints''}.
 
316
\versionadded{0.12}
 
317
\end{methoddesc}
 
318
 
 
319
\begin{methoddesc}[X509Extension]{get_data}{}
 
320
Retrieve the data for this extension.
 
321
 
 
322
The result is the ASN.1 encoded form of the extension data as a byte string.
 
323
\versionadded{0.12}
 
324
\end{methoddesc}
 
325
 
308
326
\subsubsection{X509 objects \label{openssl-x509}}
309
327
 
310
328
X509 objects have the following methods:
424
442
Add the extensions in the sequence \var{extensions} to the certificate.
425
443
\end{methoddesc}
426
444
 
 
445
\begin{methoddesc}[X509]{get_extension_count}{}
 
446
Return the number of extensions on this certificate.
 
447
\versionadded{0.12}
 
448
\end{methoddesc}
 
449
 
 
450
\begin{methoddesc}[X509]{get_extension}{index}
 
451
Retrieve the extension on this certificate at the given index.
 
452
 
 
453
Extensions on a certificate are kept in order.  The index parameter selects
 
454
which extension will be returned.  The returned object will be an X509Extension
 
455
instance.
 
456
\versionadded{0.12}
 
457
\end{methoddesc}
 
458
 
427
459
\subsubsection{X509Name objects \label{openssl-x509name}}
428
460
 
429
461
X509Name objects have the following methods: