diff options
author | Ingela Anderton Andin <[email protected]> | 2013-01-16 18:15:33 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2013-01-16 18:15:33 +0100 |
commit | e4e02fc5abecdb589eda9e3298278ad3d3648854 (patch) | |
tree | cb80989c7675153bd0325d9fcb21f6ef12b8292a /lib/public_key/include | |
parent | 812f666ea3f9034b78a12dc025366c7c31d87c3c (diff) | |
parent | 228aa99db473dc2145c8f55819e972f5dc6bb501 (diff) | |
download | otp-e4e02fc5abecdb589eda9e3298278ad3d3648854.tar.gz otp-e4e02fc5abecdb589eda9e3298278ad3d3648854.tar.bz2 otp-e4e02fc5abecdb589eda9e3298278ad3d3648854.zip |
Merge branch 'ia/public_key/CRL/OTP-7045'
* ia/public_key/CRL/OTP-7045:
public_key: Enhance documentation
public_key: CTify test suites
public_key: Document pkix_path_validation/3 and pkix_crls_validate/3
Support CRL verification in public_key
All basic test cases pass
Diffstat (limited to 'lib/public_key/include')
-rw-r--r-- | lib/public_key/include/public_key.hrl | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/lib/public_key/include/public_key.hrl b/lib/public_key/include/public_key.hrl index 90ca7256ea..4d1d510f29 100644 --- a/lib/public_key/include/public_key.hrl +++ b/lib/public_key/include/public_key.hrl @@ -68,17 +68,32 @@ -record(revoke_state, { reasons_mask, cert_status, - interim_reasons_mask + interim_reasons_mask, + valid_ext }). + +-define(unspecified, 0). +-define(keyCompromise, 1). +-define(cACompromise, 2). +-define(affiliationChanged, 3). +-define(superseded, 4). +-define(cessationOfOperation, 5). +-define(certificateHold, 6). +-define(removeFromCRL, 8). +-define(privilegeWithdrawn, 9). +-define(aACompromise, 10). + -type public_key() :: rsa_public_key() | dsa_public_key(). -type rsa_public_key() :: #'RSAPublicKey'{}. -type rsa_private_key() :: #'RSAPrivateKey'{}. -type dsa_private_key() :: #'DSAPrivateKey'{}. -type dsa_public_key() :: {integer(), #'Dss-Parms'{}}. +-type der_encoded() :: binary(). +-type decrypt_der() :: binary(). -type pki_asn1_type() :: 'Certificate' | 'RSAPrivateKey' | 'RSAPublicKey' | 'DSAPrivateKey' | 'DSAPublicKey' | 'DHParameter' - | 'SubjectPublicKeyInfo' | 'CertificationRequest'. + | 'SubjectPublicKeyInfo' | 'CertificationRequest' | 'CertificateList'. -type pem_entry() :: {pki_asn1_type(), binary(), %% DER or Encrypted DER not_encrypted | {Cipher :: string(), Salt :: binary()}}. -type asn1_type() :: atom(). %% see "OTP-PUB-KEY.hrl |