File: cert__info_8h_source.html

package info (click to toggle)
pam-pkcs11 0.6.4-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 7,512 kB
  • ctags: 7,477
  • sloc: ansic: 12,651; sh: 10,824; xml: 2,756; makefile: 231; lex: 92
file content (101 lines) | stat: -rw-r--r-- 9,087 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
101
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>pam_pkcs11: cert_info.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_55f9682142a78e45196901be32452b47.html">src</a>&nbsp;&raquo;&nbsp;<a class="el" href="dir_782c1fcd7529e1a05f3f2af490691324.html">common</a>
  </div>
</div>
<div class="contents">
<h1>cert_info.h</h1><a href="cert__info_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * PKCS #11 PAM Login Module</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 2003-2004 Mario Strasser &lt;mast@gmx.net&gt;</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2005 Juan Antonio Martinez &lt;jonsito@teleline.es&gt;</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00007"></a>00007 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span>
<a name="l00008"></a>00008 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00009"></a>00009 <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
<a name="l00012"></a>00012 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00013"></a>00013 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00014"></a>00014 <span class="comment"> * Lesser General Public License for more details.</span>
<a name="l00015"></a>00015 <span class="comment"> *</span>
<a name="l00016"></a>00016 <span class="comment"> * $Id: cert_info.h 358 2008-11-06 14:28:46Z ludovic.rousseau $</span>
<a name="l00017"></a>00017 <span class="comment"> */</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef __CERT_INFO_H_</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define __CERT_INFO_H_</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;<a class="code" href="cert__st_8h.html">cert_st.h</a>&quot;</span>
<a name="l00023"></a>00023 
<a name="l00025"></a><a class="code" href="cert__info_8h.html#ac4b81f889a126f4049fe20083b5256f2">00025</a> <span class="preprocessor">#define CERT_CN         1</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a><a class="code" href="cert__info_8h.html#a22cac8f61777d0cfeee26f762afc541f">00027</a> <span class="preprocessor">#define CERT_SUBJECT    2</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a><a class="code" href="cert__info_8h.html#a8b1a72e37c2681751646df83d0ac94c8">00029</a> <span class="preprocessor">#define CERT_KPN        3</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a><a class="code" href="cert__info_8h.html#a85edc3e1871fbcd8f4fa292376112063">00031</a> <span class="preprocessor">#define CERT_EMAIL      4</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00033"></a><a class="code" href="cert__info_8h.html#a8e11c15307b58daabb0438dd0e797d19">00033</a> <span class="preprocessor">#define CERT_UPN        5</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a><a class="code" href="cert__info_8h.html#a5a12889b67f990b09985c0888d1f54ac">00035</a> <span class="preprocessor">#define CERT_UID        6</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span>
<a name="l00037"></a><a class="code" href="cert__info_8h.html#ab683ca779afb109c64ba301bc9df539c">00037</a> <span class="preprocessor">#define CERT_PUK        7</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00039"></a><a class="code" href="cert__info_8h.html#a7b60c0c1c230c30605c03cb1a915ba06">00039</a> <span class="preprocessor">#define CERT_DIGEST     8</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00041"></a><a class="code" href="cert__info_8h.html#ad8da0e041b646ff29afaf067e2995367">00041</a> <span class="preprocessor">#define CERT_SSHPUK     9</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span>
<a name="l00043"></a><a class="code" href="cert__info_8h.html#a5ac1e2e7dd2de6acd4132c68317604cc">00043</a> <span class="preprocessor">#define CERT_PEM        10</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span>
<a name="l00045"></a><a class="code" href="cert__info_8h.html#af8ba4949e2c1c37161b8c21d85092c74">00045</a> <span class="preprocessor">#define CERT_ISSUER     11</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a><a class="code" href="cert__info_8h.html#a8d1e431210330c8b6595add8ba89b2c3">00047</a> <span class="preprocessor">#define CERT_SERIAL     12</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span>
<a name="l00049"></a><a class="code" href="cert__info_8h.html#af8d31c1af7d26538ee8ae425615ea28e">00049</a> <span class="preprocessor">#define CERT_KEY_ALG    13</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00052"></a><a class="code" href="cert__info_8h.html#a2323fe18697df26b8c13671dec4c49a3">00052</a> <span class="preprocessor">#define CERT_INFO_SIZE 16</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span>
<a name="l00054"></a><a class="code" href="cert__info_8h.html#a713ca53735733b642497e2b8aa74f8cb">00054</a> <span class="preprocessor">#define CERT_INFO_MAX_ENTRIES ( CERT_INFO_SIZE - 1 )</span>
<a name="l00055"></a>00055 <span class="preprocessor"></span>
<a name="l00056"></a>00056 <span class="preprocessor">#ifndef __CERT_INFO_C_</span>
<a name="l00057"></a><a class="code" href="cert__info_8h.html#a7b9a2835642bd2270695710cde542066">00057</a> <span class="preprocessor"></span><span class="preprocessor">#define CERTINFO_EXTERN extern</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span><span class="preprocessor">#define CERTINFO_EXTERN</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span>
<a name="l00068"></a>00068 <span class="keywordtype">void</span> <a class="code" href="cert__info_8h.html#a0afab3a081eb125820fec4658f252217" title="Generate and compose a certificate chain.">add_cert</a>(X509 *<a class="code" href="SECerrs_8h.html#a849ee110484ddc0d2ec33426bc31f5fb">cert</a>, X509 ***certs, <span class="keywordtype">int</span> *ncerts);
<a name="l00069"></a>00069 
<a name="l00077"></a>00077 <a class="code" href="cert__info_8h.html#a7b9a2835642bd2270695710cde542066">CERTINFO_EXTERN</a> <span class="keywordtype">char</span> **<a class="code" href="cert__info_8h.html#af5bac7424241f2a7e5a0a450211b5080" title="Request info on certificate.">cert_info</a>(X509 *x509, <span class="keywordtype">int</span> type, <a class="code" href="cert__st_8h.html#accc349514b4f751a105b1602d828f630">ALGORITHM_TYPE</a> algorithm);
<a name="l00078"></a>00078 
<a name="l00079"></a>00079 <span class="preprocessor">#undef CERTINFO_EXTERN</span>
<a name="l00080"></a>00080 <span class="preprocessor"></span>
<a name="l00081"></a>00081 <span class="preprocessor">#endif </span><span class="comment">/* __CERT_INFO_H_ */</span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Sat Jun 12 17:28:15 2010 for pam_pkcs11 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>