diff options
author | Jean-Paul Calderone <exarkun@divmod.com> | 2011-04-06 21:57:09 -0400 |
---|---|---|
committer | Jean-Paul Calderone <exarkun@divmod.com> | 2011-04-06 21:57:09 -0400 |
commit | 1eba6a8e784e13003ecb01210dfa856cbcff5ca4 (patch) | |
tree | 808beb3cca8b610342c02591984c4d0b7c820c8b /doc | |
parent | 90abbc0d84fee237fc9305d516fa0546c7ea241f (diff) | |
download | pyopenssl-1eba6a8e784e13003ecb01210dfa856cbcff5ca4.tar.gz |
Add docs for the new X509 and X509Extension methods
Diffstat (limited to 'doc')
-rw-r--r-- | doc/pyOpenSSL.tex | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/pyOpenSSL.tex b/doc/pyOpenSSL.tex index 294008c..be32a62 100644 --- a/doc/pyOpenSSL.tex +++ b/doc/pyOpenSSL.tex @@ -305,6 +305,24 @@ message digest type of the signature, for example \code{``sha1''}. \versionadded{0.11} \end{funcdesc} +\subsubsection{X509Extension objects \label{openssl-x509ext}} + +X509Extension objects have the following methods: + +\begin{methoddesc}[X509Extension]{get_short_name}{} +Retrieve the short descriptive name for this extension. + +The result is a byte string like \code{``basicConstraints''}. +\versionadded{0.12} +\end{methoddesc} + +\begin{methoddesc}[X509Extension]{get_data}{} +Retrieve the data for this extension. + +The result is the ASN.1 encoded form of the extension data as a byte string. +\versionadded{0.12} +\end{methoddesc} + \subsubsection{X509 objects \label{openssl-x509}} X509 objects have the following methods: @@ -424,6 +442,20 @@ by OpenSSL (by EVP_get_digestbyname, specifically). For example, Add the extensions in the sequence \var{extensions} to the certificate. \end{methoddesc} +\begin{methoddesc}[X509]{get_extension_count}{} +Return the number of extensions on this certificate. +\versionadded{0.12} +\end{methoddesc} + +\begin{methoddesc}[X509]{get_extension}{index} +Retrieve the extension on this certificate at the given index. + +Extensions on a certificate are kept in order. The index parameter selects +which extension will be returned. The returned object will be an X509Extension +instance. +\versionadded{0.12} +\end + \subsubsection{X509Name objects \label{openssl-x509name}} X509Name objects have the following methods: |