mpvrc/openssl/x509/trait.ExtensionType.html

9 lines
No EOL
10 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A type of X509 extension."><title>ExtensionType in openssl::x509 - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="openssl" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../openssl/index.html">openssl</a><span class="version">0.10.68</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Extension<wbr>Type</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#safety" title="Safety">Safety</a></li></ul><h3><a href="#required-associated-consts">Required Associated Constants</a></h3><ul class="block"><li><a href="#associatedconstant.NID" title="NID">NID</a></li></ul><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Output" title="Output">Output</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In openssl::<wbr>x509</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">openssl</a>::<wbr><a href="index.html">x509</a></span><h1>Trait <span class="trait">ExtensionType</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/openssl/x509/mod.rs.html#57-60">Source</a> </span></div><pre class="rust item-decl"><code>pub unsafe trait ExtensionType {
type <a href="#associatedtype.Output" class="associatedtype">Output</a>: <a class="trait" href="../../foreign_types_shared/trait.ForeignType.html" title="trait foreign_types_shared::ForeignType">ForeignType</a>;
const <a href="#associatedconstant.NID" class="constant">NID</a>: <a class="struct" href="../nid/struct.Nid.html" title="struct openssl::nid::Nid">Nid</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A type of X509 extension.</p>
<h2 id="safety"><a class="doc-anchor" href="#safety">§</a>Safety</h2>
<p>The value of NID and Output must match those in OpenSSL so that
<code>Output::from_ptr_opt(*_get_ext_d2i(*, NID, ...))</code> is valid.</p>
</div></details><h2 id="required-associated-consts" class="section-header">Required Associated Constants<a href="#required-associated-consts" class="anchor">§</a></h2><div class="methods"><section id="associatedconstant.NID" class="method"><a class="src rightside" href="../../src/openssl/x509/mod.rs.html#58">Source</a><h4 class="code-header">const <a href="#associatedconstant.NID" class="constant">NID</a>: <a class="struct" href="../nid/struct.Nid.html" title="struct openssl::nid::Nid">Nid</a></h4></section></div><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><section id="associatedtype.Output" class="method"><a class="src rightside" href="../../src/openssl/x509/mod.rs.html#59">Source</a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a>: <a class="trait" href="../../foreign_types_shared/trait.ForeignType.html" title="trait foreign_types_shared::ForeignType">ForeignType</a></h4></section></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.1/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-ExtensionType-for-AuthorityInformationAccess" class="impl"><a class="src rightside" href="../../src/openssl/x509/mod.rs.html#1723-1727">Source</a><a href="#impl-ExtensionType-for-AuthorityInformationAccess" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ExtensionType.html" title="trait openssl::x509::ExtensionType">ExtensionType</a> for <a class="enum" href="enum.AuthorityInformationAccess.html" title="enum openssl::x509::AuthorityInformationAccess">AuthorityInformationAccess</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.NID-1" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/openssl/x509/mod.rs.html#1724">Source</a><a href="#associatedconstant.NID-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.NID" class="constant">NID</a>: <a class="struct" href="../nid/struct.Nid.html" title="struct openssl::nid::Nid">Nid</a> = _</h4></section><section id="associatedtype.Output-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/openssl/x509/mod.rs.html#1726">Source</a><a href="#associatedtype.Output-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../stack/struct.Stack.html" title="struct openssl::stack::Stack">Stack</a>&lt;<a class="struct" href="struct.AccessDescription.html" title="struct openssl::x509::AccessDescription">AccessDescription</a>&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ExtensionType-for-CertificateIssuer" class="impl"><a class="src rightside" href="../../src/openssl/x509/mod.rs.html#1712-1716">Source</a><a href="#impl-ExtensionType-for-CertificateIssuer" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ExtensionType.html" title="trait openssl::x509::ExtensionType">ExtensionType</a> for <a class="enum" href="enum.CertificateIssuer.html" title="enum openssl::x509::CertificateIssuer">CertificateIssuer</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.NID-2" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/openssl/x509/mod.rs.html#1713">Source</a><a href="#associatedconstant.NID-2" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.NID" class="constant">NID</a>: <a class="struct" href="../nid/struct.Nid.html" title="struct openssl::nid::Nid">Nid</a> = _</h4></section><section id="associatedtype.Output-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/openssl/x509/mod.rs.html#1715">Source</a><a href="#associatedtype.Output-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../stack/struct.Stack.html" title="struct openssl::stack::Stack">Stack</a>&lt;<a class="struct" href="struct.GeneralName.html" title="struct openssl::x509::GeneralName">GeneralName</a>&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ExtensionType-for-ReasonCode" class="impl"><a class="src rightside" href="../../src/openssl/x509/mod.rs.html#1700-1704">Source</a><a href="#impl-ExtensionType-for-ReasonCode" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ExtensionType.html" title="trait openssl::x509::ExtensionType">ExtensionType</a> for <a class="enum" href="enum.ReasonCode.html" title="enum openssl::x509::ReasonCode">ReasonCode</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.NID-3" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/openssl/x509/mod.rs.html#1701">Source</a><a href="#associatedconstant.NID-3" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.NID" class="constant">NID</a>: <a class="struct" href="../nid/struct.Nid.html" title="struct openssl::nid::Nid">Nid</a> = _</h4></section><section id="associatedtype.Output-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/openssl/x509/mod.rs.html#1703">Source</a><a href="#associatedtype.Output-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="../asn1/struct.Asn1Enumerated.html" title="struct openssl::asn1::Asn1Enumerated">Asn1Enumerated</a></h4></section></div></details></div><script src="../../trait.impl/openssl/x509/trait.ExtensionType.js" async></script></section></div></main></body></html>