/usr/share/doc/libglobus-gsi-cert-utils-dev/html/group__globus__gsi__cert__utils.html is in libglobus-gsi-cert-utils-doc 9.10-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 | <!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>globus_gsi_cert_utils: Globus GSI Certificate Handling Utilities</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">globus_gsi_cert_utils
 <span id="projectnumber">9.10</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Modules</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#groups">Modules</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Globus GSI Certificate Handling Utilities</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for Globus GSI Certificate Handling Utilities:</div>
<div class="dyncontent">
<center><table><tr><td><img src="group__globus__gsi__cert__utils.png" border="0" alt="" usemap="#group____globus____gsi____cert____utils"/>
<map name="group____globus____gsi____cert____utils" id="group____globus____gsi____cert____utils">
<area shape="rect" id="node1" href="group__globus__gsi__cert__utils__constants.html" title="Cert Utils Constants" alt="" coords="215,5,365,32"/><area shape="rect" id="node3" href="group__globus__gsi__cert__utils__activation.html" title="Activation" alt="" coords="247,56,333,83"/></map>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
Modules</h2></td></tr>
<tr class="memitem:group__globus__gsi__cert__utils__activation"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gsi__cert__utils__activation.html">Activation</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:group__globus__gsi__cert__utils__constants"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gsi__cert__utils__constants.html">Cert Utils Constants</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga3d5b1265ee3b752622a4375d188f1d1e"><td class="memItemLeft" align="right" valign="top">globus_result_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gsi__cert__utils.html#ga3d5b1265ee3b752622a4375d188f1d1e">globus_gsi_cert_utils_make_time</a> (ASN1_UTCTIME *ctm, time_t *newtime)</td></tr>
<tr class="memdesc:ga3d5b1265ee3b752622a4375d188f1d1e"><td class="mdescLeft"> </td><td class="mdescRight">Convert ASN1_UTCTIME to time_t. <a href="#ga3d5b1265ee3b752622a4375d188f1d1e">More...</a><br /></td></tr>
<tr class="separator:ga3d5b1265ee3b752622a4375d188f1d1e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gabba0ff6795ee2fa8094c80484252e8a2"><td class="memItemLeft" align="right" valign="top">globus_result_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gsi__cert__utils.html#gabba0ff6795ee2fa8094c80484252e8a2">globus_gsi_cert_utils_get_cert_type</a> (X509 *cert, <a class="el" href="group__globus__gsi__cert__utils__constants.html#ga2c8766d5d2f69e1ee1fe18bb011a8c51">globus_gsi_cert_utils_cert_type_t</a> *type)</td></tr>
<tr class="memdesc:gabba0ff6795ee2fa8094c80484252e8a2"><td class="mdescLeft"> </td><td class="mdescRight">Get the X509 certificate type. <a href="#gabba0ff6795ee2fa8094c80484252e8a2">More...</a><br /></td></tr>
<tr class="separator:gabba0ff6795ee2fa8094c80484252e8a2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4aa7ebfb5cc3fa6fe28b03702776bc6b"><td class="memItemLeft" align="right" valign="top">globus_result_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gsi__cert__utils.html#ga4aa7ebfb5cc3fa6fe28b03702776bc6b">globus_gsi_cert_utils_get_x509_name</a> (char *subject_string, int length, X509_NAME *x509_name)</td></tr>
<tr class="memdesc:ga4aa7ebfb5cc3fa6fe28b03702776bc6b"><td class="mdescLeft"> </td><td class="mdescRight">Get the certificate name. <a href="#ga4aa7ebfb5cc3fa6fe28b03702776bc6b">More...</a><br /></td></tr>
<tr class="separator:ga4aa7ebfb5cc3fa6fe28b03702776bc6b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2f6beb50dfa7b080ae281398403df144"><td class="memItemLeft" align="right" valign="top">globus_result_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gsi__cert__utils.html#ga2f6beb50dfa7b080ae281398403df144">globus_gsi_cert_utils_get_base_name</a> (X509_NAME *subject, STACK_OF(X509)*cert_chain)</td></tr>
<tr class="memdesc:ga2f6beb50dfa7b080ae281398403df144"><td class="mdescLeft"> </td><td class="mdescRight">Get the base certificate name from a certificate chain. <a href="#ga2f6beb50dfa7b080ae281398403df144">More...</a><br /></td></tr>
<tr class="separator:ga2f6beb50dfa7b080ae281398403df144"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga595e5baed17527640bee23459f0a59d9"><td class="memItemLeft" align="right" valign="top">globus_result_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gsi__cert__utils.html#ga595e5baed17527640bee23459f0a59d9">globus_gsi_cert_utils_get_eec</a> (STACK_OF(X509)*cert_chain, X509 **eec)</td></tr>
<tr class="memdesc:ga595e5baed17527640bee23459f0a59d9"><td class="mdescLeft"> </td><td class="mdescRight">Get the end-entity certificate from a certificate chain. <a href="#ga595e5baed17527640bee23459f0a59d9">More...</a><br /></td></tr>
<tr class="separator:ga595e5baed17527640bee23459f0a59d9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gadbfeeb9d6cc8fcc2afa61ca19f4d44b9"><td class="memItemLeft" align="right" valign="top">globus_result_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gsi__cert__utils.html#gadbfeeb9d6cc8fcc2afa61ca19f4d44b9">globus_gsi_cert_utils_get_identity_cert</a> (STACK_OF(X509)*cert_chain, X509 **identity_cert)</td></tr>
<tr class="memdesc:gadbfeeb9d6cc8fcc2afa61ca19f4d44b9"><td class="mdescLeft"> </td><td class="mdescRight">Get the identity certificate from a certificate chain. <a href="#gadbfeeb9d6cc8fcc2afa61ca19f4d44b9">More...</a><br /></td></tr>
<tr class="separator:gadbfeeb9d6cc8fcc2afa61ca19f4d44b9"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>The Globus GSI Certificate Handling Utilities library. This library contains helper functions for dealing with certificates.</p>
<ul>
<li><a class="el" href="group__globus__gsi__cert__utils__activation.html">Activation</a></li>
<li><a class="el" href="group__globus__gsi__cert__utils.html">Globus GSI Certificate Handling Utilities</a></li>
<li><a class="el" href="group__globus__gsi__cert__utils__constants.html">Cert Utils Constants</a> </li>
</ul>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga2f6beb50dfa7b080ae281398403df144"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">globus_result_t globus_gsi_cert_utils_get_base_name </td>
<td>(</td>
<td class="paramtype">X509_NAME * </td>
<td class="paramname"><em>subject</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">STACK_OF(X509)* </td>
<td class="paramname"><em>cert_chain</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the base certificate name from a certificate chain. </p>
<p>Get the base name of a proxy certificate. Given an X509 name, strip off the proxy related /CN components to get the base name of the certificate's subject</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">subject</td><td>Pointer to an X509_NAME object which gets stripped </td></tr>
<tr><td class="paramname">cert_chain</td><td>The certificate chain used to detect the number of CNs to strip. This is done by figuring out the number of proxies in the chain. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GLOBUS_SUCCESS </dd></dl>
</div>
</div>
<a class="anchor" id="gabba0ff6795ee2fa8094c80484252e8a2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">globus_result_t globus_gsi_cert_utils_get_cert_type </td>
<td>(</td>
<td class="paramtype">X509 * </td>
<td class="paramname"><em>cert</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__globus__gsi__cert__utils__constants.html#ga2c8766d5d2f69e1ee1fe18bb011a8c51">globus_gsi_cert_utils_cert_type_t</a> * </td>
<td class="paramname"><em>type</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the X509 certificate type. </p>
<p>Determine the type of the given X509 certificate For the list of possible values returned, see globus_gsi_cert_utils_cert_type_t.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">cert</td><td>The X509 certificate </td></tr>
<tr><td class="paramname">type</td><td>The returned X509 certificate type</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GLOBUS_SUCCESS or an error captured in a globus_result_t </dd></dl>
</div>
</div>
<a class="anchor" id="ga595e5baed17527640bee23459f0a59d9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">globus_result_t globus_gsi_cert_utils_get_eec </td>
<td>(</td>
<td class="paramtype">STACK_OF(X509)* </td>
<td class="paramname"><em>cert_chain</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">X509 ** </td>
<td class="paramname"><em>eec</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the end-entity certificate from a certificate chain. </p>
<p>Get the end-entity certificate associated with a certificate chain</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">cert_chain</td><td>Certificate chain to inspect. </td></tr>
<tr><td class="paramname">eec</td><td>Pointer to be set to the EEC value from within the cert chain. Must freed by the caller. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="gadbfeeb9d6cc8fcc2afa61ca19f4d44b9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">globus_result_t globus_gsi_cert_utils_get_identity_cert </td>
<td>(</td>
<td class="paramtype">STACK_OF(X509)* </td>
<td class="paramname"><em>cert_chain</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">X509 ** </td>
<td class="paramname"><em>identity_cert</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the identity certificate from a certificate chain. </p>
<p>Get the identity-providing certificate associated with a certificate chain. This may be an independent proxy or a end-entity certificate.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">cert_chain</td><td>Certificate chain to inspect. </td></tr>
<tr><td class="paramname">identity_cert</td><td>Pointer to be set to the certificate value from within the cert chain. Must freed by the caller. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga4aa7ebfb5cc3fa6fe28b03702776bc6b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">globus_result_t globus_gsi_cert_utils_get_x509_name </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"><em>subject_string</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>length</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">X509_NAME * </td>
<td class="paramname"><em>x509_name</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the certificate name. </p>
<p>Get the X509_NAME from a subject string. OpenSSL doesn't provide this function, probably because it shouldn't be used. If you are getting an X509_NAME from just a string, its impossible to verify its integrity.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">subject_string</td><td>The subject in the format: "/O=Grid/OU=..." </td></tr>
<tr><td class="paramname">length</td><td>The length of the subject string </td></tr>
<tr><td class="paramname">x509_name</td><td>The resulting X509_NAME object</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GLOBUS_SUCCESS unless an error occurred, in which case, a globus error object ID is returned </dd></dl>
</div>
</div>
<a class="anchor" id="ga3d5b1265ee3b752622a4375d188f1d1e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">globus_result_t globus_gsi_cert_utils_make_time </td>
<td>(</td>
<td class="paramtype">ASN1_UTCTIME * </td>
<td class="paramname"><em>ctm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">time_t * </td>
<td class="paramname"><em>newtime</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Convert ASN1_UTCTIME to time_t. </p>
<p>Convert a ASN1_UTCTIME structure to a time_t</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ctm</td><td>The ASN1_UTCTIME to convert </td></tr>
<tr><td class="paramname">newtime</td><td>The converted time</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GLOBUS_SUCCESS or an error captured in a globus_result_t </dd></dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Nov 9 2014 00:14:15 for globus_gsi_cert_utils by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
|