1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module pyweblib.sslenv</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="pyweblib.html"><font color="#ffffff">pyweblib</font></a>.sslenv</strong></big></big> (version 0.6.1)</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/lib/python2.3/site-packages/pyweblib/sslenv.py">/usr/lib/python2.3/site-packages/pyweblib/sslenv.py</a></font></td></tr></table>
<p><tt>pyweblib.sslenv.py - retrieve SSL data from environment vars<br>
(C) by Michael Stroeder<br>
<br>
This module is distributed under the terms of the<br>
GPL (GNU GENERAL PUBLIC LICENSE) Version 2<br>
(see <a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>)<br>
<br>
$Id: pyweblib.sslenv.html,v 1.13 2004/08/24 10:26:30 michael Exp $</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br>
</td><td width="25%" valign=top><a href="re.html">re</a><br>
</td><td width="25%" valign=top><a href="string.html">string</a><br>
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-GetAllSSLEnviron"><strong>GetAllSSLEnviron</strong></a>(env<font color="#909090">=None</font>)</dt><dd><tt>Get all SSL-related environment vars and return mod_ssl<br>
compatible dictionary.<br>
<br>
mod_ssl compatible names are preferred. ApacheSSL names<br>
are used as fallback.</tt></dd></dl>
<dl><dt><a name="-PrintSecInfo"><strong>PrintSecInfo</strong></a>(env, acceptedciphers, valid_dn_regex<font color="#909090">=''</font>, valid_idn_regex<font color="#909090">=''</font>, f<font color="#909090">=<open file '<stdout>', mode 'w'></font>)</dt><dd><tt>Print the SSL data in HTML format</tt></dd></dl>
<dl><dt><a name="-SecLevel"><strong>SecLevel</strong></a>(env, acceptedciphers, valid_dn_regex<font color="#909090">=''</font>, valid_idn_regex<font color="#909090">=''</font>)</dt><dd><tt>Determine Security Level of SSL session.<br>
<br>
Returns:<br>
0 no SSL at all<br>
1 SSL-connection and cipher used is in acceptedciphers<br>
2 like 1 but client also has sent client certificate<br>
matching valid_dn_regex and valid_idn_regex.</tt></dd></dl>
<dl><dt><a name="-asn12html4"><strong>asn12html4</strong></a>(s)</dt><dd><tt>Convert BMPString to HTML-4 character representation</tt></dd></dl>
<dl><dt><a name="-t612html4"><strong>t612html4</strong></a>(s)</dt><dd><tt>Convert T.61 character representation to HTML-4 character representation</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>__version__</strong> = '0.6.1'</td></tr></table>
</body></html>
|