1234567891011121314151617181920212223242526272829module 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);
}
A type for easily storing and accessing the various different extensions that have built-in support.
This type isn't super great for unknown extensions (i.e. extensions that the user code may recognise).
| Name | Description |
|---|---|
| __xdtor | |
| __xpostblit |
| 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. |