File: verify_certificate.html

package info (click to toggle)
pike7.6 7.6.93-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 116,100 kB
  • ctags: 24,114
  • sloc: ansic: 257,624; xml: 5,235; makefile: 2,574; sh: 1,565; lisp: 655; asm: 237; pascal: 66; sed: 34; perl: 3
file content (100 lines) | stat: -rw-r--r-- 5,848 bytes parent folder | download
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<html><head><title>Pike Reference Manual - Tools.X509.verify_certificate()</title>
<link rel='stylesheet' href='../../../../style.css' /></head>
<body topmargin='0' leftmargin='0' marginheight='0' marginwidth='0'
      bgcolor='#ffffff' text='#000000' link='#000099' alink='#002040'
      vlink='#000099'>

<table width="100%">
  <tr>
    <td colspan='3'></td>
    <td colspan='2' align='right'>Extracted from Pike v7.6 release 93 at 2006-10-04.</td>
  </tr>
  <tr>
    <td width="0%"><img src="../../../..//images/unit.gif" alt="" width="10" height="1"></td>
    <td width="1%">
      <a href="http://pike.ida.liu.se/"><img src="../../../..//images/pike_logo.gif"
      border="0" alt="pike.ida.liu.se" width="181" height="41" hspace="5"></a></td>
    <td width="0%"><img src="../../../..//images/unit.gif" alt="" width="10" height="1"></td>
    <td width="99%">
      <table align="center" border="0" width="100%" cellspacing="0" cellpadding="0" valign="middle">
        <tr>
          <td width="1%" align="right"><img src="../../../..//images/pike_line_left.gif" alt="" border="0" width="5" height="11"></td>
          <td background="../../../..//images/pike_line_middle.gif" width="98%"><img src="../../../..//images/unit.gif" alt="" border="0" width="11" height="11"></td>
          <td width="1%" align="left"><img src="../../../..//images/pike_line_right.gif" alt="" border="0" width="5" height="11"></td>
        </tr>
      </table>
    </td>
    <td width="0%"><img src="../../../..//images/unit.gif" alt="" width="10" height="1"></td>
  </tr>
  <tr>
    <td colspan="5"><img src="../../../..//images/unit.gif" alt="" width="1" height="10"></td>
  </tr>
</table>

<table>
  <tr>
    <td width='180' valign='top' bgcolor='#f0f0f0'><a href='../../../../index.html'><b>[Top]</b></a><br />
<a href='../../../../ex/predef_3A_3A/Tools.html'><b>Tools</b></a><br />
<a href='../../../../ex/predef_3A_3A/Tools/X509.html'><b>Tools.X509</b></a><br />
<table border='0' cellpadding='1' cellspacing='0' class='sidebar'><tr><td nowrap='nowrap'><br /><b>Classes</b></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/Tools/X509/TBSCertificate.html'><b>TBSCertificate</b></a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/Tools/X509/rsa_verifier.html'><b>rsa_verifier</b></a></td></tr>
<tr><td nowrap='nowrap'><br /><b>Methods</b></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/Tools/X509/decode_certificate.html'>decode_certificate()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/Tools/X509/make_selfsigned_dsa_certificate.html'>make_selfsigned_dsa_certificate()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/Tools/X509/make_selfsigned_rsa_certificate.html'>make_selfsigned_rsa_certificate()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/Tools/X509/make_tbs.html'>make_tbs()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/Tools/X509/make_time.html'>make_time()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/Tools/X509/make_verifier.html'>make_verifier()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/Tools/X509/parse_time.html'>parse_time()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/Tools/X509/rsa_sign_digest.html'>rsa_sign_digest()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/Tools/X509/rsa_verify_digest.html'>rsa_verify_digest()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/Tools/X509/time_compare.html'>time_compare()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;verify_certificate()</td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/Tools/X509/verify_certificate_chain.html'>verify_certificate_chain()</a></td></tr>
</table></td>
    <td width='520' valign='top'>

    <table border="0" width="520" bgcolor="#e0e0e0"
           cellpadding="0" cellspacing="4" class='sidebar'>
      <tr>
        <td valign="middle">
	  <a href="../../../../ex/predef_3A_3A/Tools/X509/time_compare.html"><img src="../../../../images/prev.gif" hspace="3"
	         border="0" alt="previous" >Tools.X509.time_compare()</a>
          <br />
	</td>
	<td align="right" valign="middle">
	  <a href="../../../../ex/predef_3A_3A/Tools/X509/verify_certificate_chain.html">Tools.X509.verify_certificate_chain()<img src="../../../../images/next.gif" hspace="3"
	          border="0" alt="next" ></a>
	  <br />
	</td>
      </tr>
    </table>

    <h1>Method Tools.X509.verify_certificate()</h1>
    

<hr clear='all' size='1' noshadow='noshadow' />
<dl>
<dt><font face='Helvetica'><font face='Helvetica'>Method</font>
<font size='+1'><b>verify_certificate</b></font>
</font><dt>
<dd><p><tt><font color='#005080'><font face='courier'><a href='../../../predef_3A_3A/Tools/X509/TBSCertificate.html'>TBSCertificate</a></font></font> Tools.X509.<b><font color='#000066'>verify_certificate</font>(</b><font color='#202020'>string</font> <font color='#005080'>s</font>, <font color='#202020'>mapping</font> <font color='#005080'>authorities</font><b>)</b></tt></p></dd>

<dt><font face='Helvetica'>Description</font><dt>
<dd><font face='Helvetica'><p>Decodes a certificate, checks the signature. Returns the
 TBSCertificate structure, or 0 if decoding or verification failes.</p>
<p> Authorities is a mapping from (DER-encoded) names to a verifiers.</p>
</font></dd>
<dt><font face='Helvetica'>Note</font><dt>
<dd><font face='Helvetica'><p>This function allows self-signed certificates, and it doesn't
   check that names or extensions make sense.</p>
</font></dd></dl>


    <hr size='1' noshade='1' />
    </td>
  </tr>
</table>
</body>
</html>