Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Structs X509ExtensionStore

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
module juptune.data.x509.store;

struct X509ExtensionStore
{
    /++ ALIASES ++/
    
    ///
    alias __xdtor = __MARMOS_BUG__;
    ///
    alias __xpostblit = __MARMOS_BUG__;
    
    /++ FUNCTIONS ++/
    
    /// Loads all of the extensions of the given certificate into the provided store. 
    static Result fromCertificate(X509Certificate cert, X509ExtensionStore store);
    /// (warning: this is fairly low level since it uses an internal type - this is exposed for debugging rather than for features) 
    void getKnownExtensions(__tuple(TODO) types);
    /// Gets the value of an extension if it was set, or null. 
     getOrNull(T)();
    ///
    ArrayBase!(Malloc, 8LU, (length, capacity) => max(capacity, length) * 2, (length, capacity) => length < capacity / 2, (length, capacity) => capacity / 2, X509Extension.Unknown) getUnknownExtensions();
    ///
    X509ExtensionStore opAssign(X509ExtensionStore p);
    /// Stores an unknown extension. 
    void putUnknown(X509Extension.Unknown unknown);
    /// Sets the value of an extension. 
    Result set(T)(T extension);
    
}

Documentation

A type for easily storing and accessing the various different extensions that have built-in support.

Notes

This type isn't super great for unknown extensions (i.e. extensions that the user code may recognise).

Aliases

Name Description
__xdtor
__xpostblit

Functions

Name Description
fromCertificate

Loads all of the extensions of the given certificate into the provided store.

getKnownExtensions

(warning: this is fairly low level since it uses an internal type - this is exposed for debugging rather than for features)

getOrNull

Gets the value of an extension if it was set, or null.

getUnknownExtensions
opAssign
putUnknown

Stores an unknown extension.

set

Sets the value of an extension.