14 lines
8.0 KiB
HTML
14 lines
8.0 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="Defines the format of certificates"><title>openssl::asn1 - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.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.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module asn1</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../openssl/index.html">openssl</a><span class="version">0.10.75</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module asn1</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate openssl</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">openssl</a></div><h1>Module <span>asn1</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/asn1.rs.html#1-922">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Defines the format of certificates</p>
|
|
<p>This module is used by <a href="../x509/struct.X509Builder.html"><code>x509</code></a> and other certificate building functions
|
|
to describe time, strings, and objects.</p>
|
|
<p>Abstract Syntax Notation One is an interface description language.
|
|
The specification comes from <a href="https://www.itu.int/rec/T-REC-X.208-198811-W/en">X.208</a> by OSI, and rewritten in X.680.
|
|
ASN.1 describes properties of an object with a type set. Those types
|
|
can be atomic, structured, choice, and other (CHOICE and ANY). These
|
|
types are expressed as a number and the assignment operator ::= gives
|
|
the type a name.</p>
|
|
<p>The implementation here provides a subset of the ASN.1 types that OpenSSL
|
|
uses, especially in the properties of a certificate used in HTTPS.</p>
|
|
<h3 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h3>
|
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>openssl::asn1::Asn1Time;
|
|
<span class="kw">let </span>tomorrow = Asn1Time::days_from_now(<span class="number">1</span>);</code></pre></div></div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Asn1BitString.html" title="struct openssl::asn1::Asn1BitString">Asn1<wbr>BitString</a></dt><dd>Sequence of bytes</dd><dt><a class="struct" href="struct.Asn1BitStringRef.html" title="struct openssl::asn1::Asn1BitStringRef">Asn1<wbr>BitString<wbr>Ref</a></dt><dd>A reference to an <a href="struct.Asn1BitString.html" title="struct openssl::asn1::Asn1BitString"><code>Asn1BitString</code></a>.</dd><dt><a class="struct" href="struct.Asn1Enumerated.html" title="struct openssl::asn1::Asn1Enumerated">Asn1<wbr>Enumerated</a></dt><dd>An ASN.1 enumerated.</dd><dt><a class="struct" href="struct.Asn1EnumeratedRef.html" title="struct openssl::asn1::Asn1EnumeratedRef">Asn1<wbr>Enumerated<wbr>Ref</a></dt><dd>A reference to an <a href="struct.Asn1Enumerated.html" title="struct openssl::asn1::Asn1Enumerated"><code>Asn1Enumerated</code></a>.</dd><dt><a class="struct" href="struct.Asn1GeneralizedTime.html" title="struct openssl::asn1::Asn1GeneralizedTime">Asn1<wbr>Generalized<wbr>Time</a></dt><dd>Non-UTC representation of time</dd><dt><a class="struct" href="struct.Asn1GeneralizedTimeRef.html" title="struct openssl::asn1::Asn1GeneralizedTimeRef">Asn1<wbr>Generalized<wbr>Time<wbr>Ref</a></dt><dd>Reference to a <a href="struct.Asn1GeneralizedTime.html"><code>Asn1GeneralizedTime</code></a></dd><dt><a class="struct" href="struct.Asn1Integer.html" title="struct openssl::asn1::Asn1Integer">Asn1<wbr>Integer</a></dt><dd>Numeric representation</dd><dt><a class="struct" href="struct.Asn1IntegerRef.html" title="struct openssl::asn1::Asn1IntegerRef">Asn1<wbr>Integer<wbr>Ref</a></dt><dd>A reference to an <a href="struct.Asn1Integer.html" title="struct openssl::asn1::Asn1Integer"><code>Asn1Integer</code></a>.</dd><dt><a class="struct" href="struct.Asn1Object.html" title="struct openssl::asn1::Asn1Object">Asn1<wbr>Object</a></dt><dd>Object Identifier</dd><dt><a class="struct" href="struct.Asn1ObjectRef.html" title="struct openssl::asn1::Asn1ObjectRef">Asn1<wbr>Object<wbr>Ref</a></dt><dd>A reference to an <a href="struct.Asn1Object.html" title="struct openssl::asn1::Asn1Object"><code>Asn1Object</code></a>.</dd><dt><a class="struct" href="struct.Asn1OctetString.html" title="struct openssl::asn1::Asn1OctetString">Asn1<wbr>Octet<wbr>String</a></dt><dd>ASN.1 OCTET STRING type</dd><dt><a class="struct" href="struct.Asn1OctetStringRef.html" title="struct openssl::asn1::Asn1OctetStringRef">Asn1<wbr>Octet<wbr>String<wbr>Ref</a></dt><dd>A reference to an <a href="struct.Asn1OctetString.html" title="struct openssl::asn1::Asn1OctetString"><code>Asn1OctetString</code></a>.</dd><dt><a class="struct" href="struct.Asn1String.html" title="struct openssl::asn1::Asn1String">Asn1<wbr>String</a></dt><dd>Primary ASN.1 type used by OpenSSL</dd><dt><a class="struct" href="struct.Asn1StringRef.html" title="struct openssl::asn1::Asn1StringRef">Asn1<wbr>String<wbr>Ref</a></dt><dd>A reference to an <a href="struct.Asn1String.html" title="struct openssl::asn1::Asn1String"><code>Asn1String</code></a>.</dd><dt><a class="struct" href="struct.Asn1Time.html" title="struct openssl::asn1::Asn1Time">Asn1<wbr>Time</a></dt><dd>Time storage and comparison</dd><dt><a class="struct" href="struct.Asn1TimeRef.html" title="struct openssl::asn1::Asn1TimeRef">Asn1<wbr>Time<wbr>Ref</a></dt><dd>Reference to an <a href="struct.Asn1Time.html"><code>Asn1Time</code></a></dd><dt><a class="struct" href="struct.Asn1Type.html" title="struct openssl::asn1::Asn1Type">Asn1<wbr>Type</a></dt><dd>The type of an ASN.1 value.</dd><dt><a class="struct" href="struct.TimeDiff.html" title="struct openssl::asn1::TimeDiff">Time<wbr>Diff</a></dt><dd>Difference between two ASN1 times.</dd></dl></section></div></main></body></html> |