93 lines
3.0 KiB
HTML
Executable File
93 lines
3.0 KiB
HTML
Executable File
<?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_get0_sm2_id</title>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
<link rev="made" href="mailto:root@localhost" />
|
|
</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="#notes">NOTES</a></li>
|
|
<li><a href="#return_values">RETURN VALUES</a></li>
|
|
<li><a href="#see_also">SEE ALSO</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_get0_sm2_id, X509_set0_sm2_id,
|
|
X509_REQ_get0_sm2_id, X509_REQ_set0_sm2_id
|
|
- get or set SM2 ID for certificate operations</p>
|
|
<p>
|
|
</p>
|
|
<hr />
|
|
<h1><a name="synopsis">SYNOPSIS</a></h1>
|
|
<pre>
|
|
#include <openssl/x509.h></pre>
|
|
<pre>
|
|
ASN1_OCTET_STRING *X509_get0_sm2_id(X509 *x);
|
|
void X509_set0_sm2_id(X509 *x, ASN1_OCTET_STRING *sm2_id);
|
|
ASN1_OCTET_STRING *X509_REQ_get0_sm2_id(X509_REQ *x);
|
|
void X509_REQ_set0_sm2_id(X509_REQ *x, ASN1_OCTET_STRING *sm2_id);</pre>
|
|
<p>
|
|
</p>
|
|
<hr />
|
|
<h1><a name="description">DESCRIPTION</a></h1>
|
|
<p>X509_get0_sm2_id() gets the ID value of an SM2 certificate <strong>x</strong> by returning an
|
|
<strong>ASN1_OCTET_STRING</strong> object which should not be freed by the caller.</p>
|
|
<p>X509_set0_sm2_id() sets the <strong>sm2_id</strong> value to an SM2 certificate <strong>x</strong>. Calling
|
|
this function transfers the memory management of the value to the X509 object,
|
|
and therefore the value that has been passed in should not be freed by the
|
|
caller after this function has been called.</p>
|
|
<p>X509_REQ_get0_sm2_id() and X509_REQ_set0_sm2_id() have the same functionality
|
|
as X509_get0_sm2_id() and X509_set0_sm2_id() except that they deal with
|
|
<strong>X509_REQ</strong> objects instead of <strong>X509</strong>.</p>
|
|
<p>
|
|
</p>
|
|
<hr />
|
|
<h1><a name="notes">NOTES</a></h1>
|
|
<p>SM2 signature algorithm requires an ID value when generating and verifying a
|
|
signature. The functions described in this manual provide the user with the
|
|
ability to set and retrieve the SM2 ID value.</p>
|
|
<p>
|
|
</p>
|
|
<hr />
|
|
<h1><a name="return_values">RETURN VALUES</a></h1>
|
|
<p>X509_set0_sm2_id() and X509_REQ_set0_sm2_id() do not return a value.</p>
|
|
<p>
|
|
</p>
|
|
<hr />
|
|
<h1><a name="see_also">SEE ALSO</a></h1>
|
|
<p><em>X509_verify(3)</em>, <em>SM2(7)</em></p>
|
|
<p>
|
|
</p>
|
|
<hr />
|
|
<h1><a name="copyright">COPYRIGHT</a></h1>
|
|
<p>Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.</p>
|
|
<p>Licensed under the Apache License 2.0 (the "License"). 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>
|