config root man

Current Path : /usr/opt/openssl11/share/doc/openssl/html/man3/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/opt/openssl11/share/doc/openssl/html/man3/X509_check_purpose.html

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>X509_check_purpose</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@hsxx.drive.ne.jp" />
</head>

<body style="background-color: white">


<!-- INDEX BEGIN -->
<div name="index">
<p><a name="__index__"></a></p>

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#synopsis">SYNOPSIS</a></li>
	<li><a href="#description">DESCRIPTION</a></li>
	<li><a href="#return_values">RETURN VALUES</a></li>
	<li><a href="#copyright">COPYRIGHT</a></li>
</ul>

<hr name="index" />
</div>
<!-- INDEX END -->

<p>
</p>
<hr />
<h1><a name="name">NAME</a></h1>
<p>X509_check_purpose - Check the purpose of a certificate</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<pre>
 #include &lt;openssl/x509v3.h&gt;</pre>
<pre>
 int X509_check_purpose(X509 *x, int id, int ca)</pre>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>This function checks if certificate <em>x</em> was created with the purpose
represented by <em>id</em>. If <em>ca</em> is nonzero, then certificate <em>x</em> is
checked to determine if it's a possible CA with various levels of certainty
possibly returned.</p>
<p>Below are the potential ID's that can be checked:</p>
<pre>
 # define X509_PURPOSE_SSL_CLIENT        1
 # define X509_PURPOSE_SSL_SERVER        2
 # define X509_PURPOSE_NS_SSL_SERVER     3
 # define X509_PURPOSE_SMIME_SIGN        4
 # define X509_PURPOSE_SMIME_ENCRYPT     5
 # define X509_PURPOSE_CRL_SIGN          6
 # define X509_PURPOSE_ANY               7
 # define X509_PURPOSE_OCSP_HELPER       8
 # define X509_PURPOSE_TIMESTAMP_SIGN    9</pre>
<p>
</p>
<hr />
<h1><a name="return_values">RETURN VALUES</a></h1>
<p>For non-CA checks</p>
<dl>
<dt><strong><a name="1_an_error_condition_has_occurred" class="item">-1 an error condition has occurred</a></strong></dt>

<dd>
</li>
<li><strong><a name="if_the_certificate_was_created_to_perform_the_purpose_represented_by_id" class="item">&#32;1 if the certificate was created to perform the purpose represented by <em>id</em></a></strong>

</li>
<li><strong><a name="if_the_certificate_was_not_created_to_perform_the_purpose_represented_by_id" class="item">&#32;0 if the certificate was not created to perform the purpose represented by <em>id</em></a></strong>

</dd>
</dl>
<p>For CA checks the below integers could be returned with the following meanings:</p>
<dl>
<dt><strong><a name="1_an_error_condition_has_occurred2" class="item">-1 an error condition has occurred</a></strong></dt>

<dd>
</li>
<li><strong><a name="not_a_ca_or_does_not_have_the_purpose_represented_by_id" class="item">&#32;0 not a CA or does not have the purpose represented by <em>id</em></a></strong>

</li>
<li><strong><a name="is_a_ca" class="item">&#32;1 is a CA.</a></strong>

</li>
<li><strong><a name="only_possible_in_old_versions_of_openssl_when_basicconstraints_are_absent_new_versions_will_not_return_this_value_may_be_a_ca" class="item">&#32;2 Only possible in old versions of openSSL when basicConstraints are absent.
         New versions will not return this value. May be a CA</a></strong>

</li>
<li><strong><a name="basicconstraints_absent_but_self_signed_v1" class="item">&#32;3 basicConstraints absent but self signed V1.</a></strong>

</li>
<li><strong><a name="basicconstraints_absent_but_keyusage_present_and_keycertsign_asserted" class="item">&#32;4 basicConstraints absent but keyUsage present and keyCertSign asserted.</a></strong>

</li>
<li><strong><a name="legacy_netscape_specific_ca_flags_present" class="item">&#32;5 legacy Netscape specific CA Flags present</a></strong>

</dd>
</dl>
<p>
</p>
<hr />
<h1><a name="copyright">COPYRIGHT</a></h1>
<p>Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the &quot;License&quot;). You may not use this
file except in compliance with the License. You can obtain a copy in the file
LICENSE in the source distribution or at <a href="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</a>.</p>

</body>

</html>

Man Man