Jean-Paul Calderone | ec155e5 | 2010-10-07 22:34:15 -0400 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
Jean-Paul Calderone | 78caacc | 2011-04-07 15:41:56 -0400 | [diff] [blame^] | 4 | <title>3.1.12 Revoked objects </title> |
| 5 | <META NAME="description" CONTENT="3.1.12 Revoked objects "> |
Jean-Paul Calderone | ec155e5 | 2010-10-07 22:34:15 -0400 | [diff] [blame] | 6 | <META NAME="keywords" CONTENT="pyOpenSSL"> |
| 7 | <META NAME="resource-type" CONTENT="document"> |
| 8 | <META NAME="distribution" CONTENT="global"> |
| 9 | <link rel="STYLESHEET" href="pyOpenSSL.css"> |
| 10 | <LINK REL="previous" href="crl.html"> |
| 11 | <LINK REL="up" href="openssl-crypto.html"> |
| 12 | <LINK REL="next" href="openssl-rand.html"> |
| 13 | </head> |
| 14 | <body> |
| 15 | <DIV CLASS="navigation"> |
| 16 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 17 | <tr> |
| 18 | <td><A href="crl.html"><img src="previous.gif" |
| 19 | border="0" height="32" |
| 20 | alt="Previous Page" width="32"></A></td> |
| 21 | <td><A href="openssl-crypto.html"><img src="up.gif" |
| 22 | border="0" height="32" |
| 23 | alt="Up One Level" width="32"></A></td> |
| 24 | <td><A href="openssl-rand.html"><img src="next.gif" |
| 25 | border="0" height="32" |
| 26 | alt="Next Page" width="32"></A></td> |
| 27 | <td align="center" width="100%">Python OpenSSL Manual</td> |
| 28 | <td><A href="contents.html"><img src="contents.gif" |
| 29 | border="0" height="32" |
| 30 | alt="Contents" width="32"></A></td> |
| 31 | <td><img src="blank.gif" |
| 32 | border="0" height="32" |
| 33 | alt="" width="32"></td> |
| 34 | <td><img src="blank.gif" |
| 35 | border="0" height="32" |
| 36 | alt="" width="32"></td> |
| 37 | </tr></table> |
Jean-Paul Calderone | 78caacc | 2011-04-07 15:41:56 -0400 | [diff] [blame^] | 38 | <b class="navlabel">Previous:</b> <a class="sectref" href="crl.html">3.1.11 CRL objects</A> |
Jean-Paul Calderone | ec155e5 | 2010-10-07 22:34:15 -0400 | [diff] [blame] | 39 | <b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto </A> |
| 40 | <b class="navlabel">Next:</b> <a class="sectref" href="openssl-rand.html">3.2 rand </A> |
| 41 | <br><hr> |
| 42 | </DIV> |
| 43 | <!--End of Navigation Panel--> |
| 44 | |
Jean-Paul Calderone | 78caacc | 2011-04-07 15:41:56 -0400 | [diff] [blame^] | 45 | <H3><A NAME="SECTION0004112000000000000000"> </A> |
Jean-Paul Calderone | ec155e5 | 2010-10-07 22:34:15 -0400 | [diff] [blame] | 46 | <BR> |
Jean-Paul Calderone | 78caacc | 2011-04-07 15:41:56 -0400 | [diff] [blame^] | 47 | 3.1.12 Revoked objects |
Jean-Paul Calderone | ec155e5 | 2010-10-07 22:34:15 -0400 | [diff] [blame] | 48 | </H3> |
| 49 | |
| 50 | <P> |
| 51 | Revoked objects have the following methods: |
| 52 | |
| 53 | <P> |
Jean-Paul Calderone | 78caacc | 2011-04-07 15:41:56 -0400 | [diff] [blame^] | 54 | <dl><dt><b><a name='l2h-109'><tt class='method'>all_reasons</tt></a></b>() |
Jean-Paul Calderone | ec155e5 | 2010-10-07 22:34:15 -0400 | [diff] [blame] | 55 | <dd> |
| 56 | Return a list of all supported reasons. |
| 57 | </dl> |
| 58 | |
| 59 | <P> |
Jean-Paul Calderone | 78caacc | 2011-04-07 15:41:56 -0400 | [diff] [blame^] | 60 | <dl><dt><b><a name='l2h-110'><tt class='method'>get_reason</tt></a></b>() |
Jean-Paul Calderone | ec155e5 | 2010-10-07 22:34:15 -0400 | [diff] [blame] | 61 | <dd> |
| 62 | Return the revocation reason as a str. Can be |
| 63 | None, which differs from "Unspecified". |
| 64 | </dl> |
| 65 | |
| 66 | <P> |
Jean-Paul Calderone | 78caacc | 2011-04-07 15:41:56 -0400 | [diff] [blame^] | 67 | <dl><dt><b><a name='l2h-111'><tt class='method'>get_rev_date</tt></a></b>() |
Jean-Paul Calderone | ec155e5 | 2010-10-07 22:34:15 -0400 | [diff] [blame] | 68 | <dd> |
| 69 | Return the revocation date as a str. |
| 70 | The string is formatted as an ASN1 GENERALIZEDTIME. |
| 71 | </dl> |
| 72 | |
| 73 | <P> |
Jean-Paul Calderone | 78caacc | 2011-04-07 15:41:56 -0400 | [diff] [blame^] | 74 | <dl><dt><b><a name='l2h-112'><tt class='method'>get_serial</tt></a></b>() |
Jean-Paul Calderone | ec155e5 | 2010-10-07 22:34:15 -0400 | [diff] [blame] | 75 | <dd> |
| 76 | Return a str containing a hex number of the serial of the revoked certificate. |
| 77 | </dl> |
| 78 | |
| 79 | <P> |
Jean-Paul Calderone | 78caacc | 2011-04-07 15:41:56 -0400 | [diff] [blame^] | 80 | <dl><dt><b><a name='l2h-113'><tt class='method'>set_reason</tt></a></b>(<var>reason</var>) |
Jean-Paul Calderone | ec155e5 | 2010-10-07 22:34:15 -0400 | [diff] [blame] | 81 | <dd> |
| 82 | Set the revocation reason. <var>reason</var> must |
| 83 | be None or a string, but the values are limited. |
| 84 | Spaces and case are ignored. See <tt class="method">all_reasons</tt>. |
| 85 | </dl> |
| 86 | |
| 87 | <P> |
Jean-Paul Calderone | 78caacc | 2011-04-07 15:41:56 -0400 | [diff] [blame^] | 88 | <dl><dt><b><a name='l2h-114'><tt class='method'>set_rev_date</tt></a></b>(<var>date</var>) |
Jean-Paul Calderone | ec155e5 | 2010-10-07 22:34:15 -0400 | [diff] [blame] | 89 | <dd> |
| 90 | Set the revocation date. |
| 91 | The string is formatted as an ASN1 GENERALIZEDTIME. |
| 92 | </dl> |
| 93 | |
| 94 | <P> |
Jean-Paul Calderone | 78caacc | 2011-04-07 15:41:56 -0400 | [diff] [blame^] | 95 | <dl><dt><b><a name='l2h-115'><tt class='method'>set_serial</tt></a></b>(<var>serial</var>) |
Jean-Paul Calderone | ec155e5 | 2010-10-07 22:34:15 -0400 | [diff] [blame] | 96 | <dd> |
| 97 | <var>serial</var> is a string containing a hex number of the serial of the revoked certificate. |
| 98 | </dl> |
| 99 | |
| 100 | <P> |
| 101 | |
| 102 | <DIV CLASS="navigation"> |
| 103 | <p><hr> |
| 104 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 105 | <tr> |
| 106 | <td><A href="crl.html"><img src="previous.gif" |
| 107 | border="0" height="32" |
| 108 | alt="Previous Page" width="32"></A></td> |
| 109 | <td><A href="openssl-crypto.html"><img src="up.gif" |
| 110 | border="0" height="32" |
| 111 | alt="Up One Level" width="32"></A></td> |
| 112 | <td><A href="openssl-rand.html"><img src="next.gif" |
| 113 | border="0" height="32" |
| 114 | alt="Next Page" width="32"></A></td> |
| 115 | <td align="center" width="100%">Python OpenSSL Manual</td> |
| 116 | <td><A href="contents.html"><img src="contents.gif" |
| 117 | border="0" height="32" |
| 118 | alt="Contents" width="32"></A></td> |
| 119 | <td><img src="blank.gif" |
| 120 | border="0" height="32" |
| 121 | alt="" width="32"></td> |
| 122 | <td><img src="blank.gif" |
| 123 | border="0" height="32" |
| 124 | alt="" width="32"></td> |
| 125 | </tr></table> |
Jean-Paul Calderone | 78caacc | 2011-04-07 15:41:56 -0400 | [diff] [blame^] | 126 | <b class="navlabel">Previous:</b> <a class="sectref" href="crl.html">3.1.11 CRL objects</A> |
Jean-Paul Calderone | ec155e5 | 2010-10-07 22:34:15 -0400 | [diff] [blame] | 127 | <b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto </A> |
| 128 | <b class="navlabel">Next:</b> <a class="sectref" href="openssl-rand.html">3.2 rand </A> |
| 129 | <hr> |
Jean-Paul Calderone | bcb1bab | 2010-10-31 10:36:47 -0400 | [diff] [blame] | 130 | <span class="release-info">Release 0.11.</span> |
Jean-Paul Calderone | ec155e5 | 2010-10-07 22:34:15 -0400 | [diff] [blame] | 131 | </DIV> |
| 132 | <!--End of Navigation Panel--> |
| 133 | |
| 134 | </BODY> |
| 135 | </HTML> |