Skip to content

Commit

Permalink
EST server /ca /cacerts /csrattrs HTTP endpointd
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Oct 28, 2024
1 parent 213e318 commit 7000d95
Show file tree
Hide file tree
Showing 9 changed files with 361 additions and 225 deletions.
80 changes: 80 additions & 0 deletions include/DSTU-Cert.hrl
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
%% Generated by the Erlang ASN.1 compiler. Version: 5.0.17
%% Purpose: Erlang record definitions for each named and unnamed
%% SEQUENCE and SET, and macro definitions for each value
%% definition in module DSTU-Cert.

-ifndef(_DSTU_CERT_HRL_).
-define(_DSTU_CERT_HRL_, true).

-record('Certificate', {
tbsCertificate,
signatureAlgorithm,
signatureValue
}).

-record('TBSCertificate', {
version,
serialNumber,
signature,
issuer,
validity,
subject,
subjectPublicKeyInfo,
issuerUniqueID = asn1_NOVALUE,
subjectUniqueID = asn1_NOVALUE,
extensions
}).

-record('AttributeTypeAndValue', {
type,
value
}).

-record('Extension', {
extnID,
critical = asn1_DEFAULT,
extnvalue
}).

-record('Validity', {
notBefore,
notAfter
}).

-record('SubjectPublicKeyInfo', {
algorithm,
subjectPublicKey
}).

-record('AlgorithmIdentifier', {
algorithm,
parameters
}).

-record('DSTU4145Params', {
definition,
dke = asn1_NOVALUE
}).

-record('ECBinary', {
version = asn1_DEFAULT,
f,
a,
b,
n,
bp
}).

-record('BinaryField', {
m,
p = asn1_NOVALUE
}).

-record('Pentanomial', {
k,
j,
l
}).

-define('id-at', {2,5,4}).
-endif. %% _DSTU_CERT_HRL_
30 changes: 30 additions & 0 deletions include/PKIX-CommonTypes-2009.hrl
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
%% Generated by the Erlang ASN.1 compiler. Version: 5.0.17
%% Purpose: Erlang record definitions for each named and unnamed
%% SEQUENCE and SET, and macro definitions for each value
%% definition in module PKIX-CommonTypes-2009.

-ifndef(_PKIX_COMMONTYPES_2009_HRL_).
-define(_PKIX_COMMONTYPES_2009_HRL_, true).

-record('AttributeSet', {
type,
values
}).

-record('SingleAttribute', {
type,
value
}).

-record('Extension', {
extnID,
critical = asn1_DEFAULT,
extnValue
}).

-record('SecurityCategory', {
type,
value
}).

-endif. %% _PKIX_COMMONTYPES_2009_HRL_
Loading

0 comments on commit 7000d95

Please sign in to comment.