scclib
Stable Cloud Computing C++ Library
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
scc::crypto::ExtExtendedKeyUsage Struct Reference

Extended key usage. More...

#include <cert.h>

Inheritance diagram for scc::crypto::ExtExtendedKeyUsage:
Inheritance graph
[legend]
Collaboration diagram for scc::crypto::ExtExtendedKeyUsage:
Collaboration graph
[legend]

Public Member Functions

 ExtExtendedKeyUsage (bool crit=false)
 
std::string name () const
 Return the name of the extension.
 
virtual std::string str (bool=false) const
 Print to string, optionally printing the value.
 
virtual void parse ()
 Parse value into the the local sub-class data.
 
virtual void dump ()
 Dump sub-class data into the value.
 
virtual bool implemented () const
 Is this implemented (sub-classed)? More...
 
void clear ()
 
- Public Member Functions inherited from scc::crypto::ExtBase
 ExtBase (bool crit=false)
 
BasePtr dump_seq ()
 Dump the extension into an Extension sequence.
 

Static Public Member Functions

static bool is_castable (ExtBasePtr b)
 
static ExtExtendedKeyUsagecast (ExtBasePtr b)
 
- Static Public Member Functions inherited from scc::crypto::ExtBase
static ExtBasePtr create (BasePtr)
 Create an extension. More...
 
static oid_value find_oid (ExtType)
 Find the oid associated with the extension type.
 

Public Attributes

bool permit_any
 Permit any usage. Used for applications that must include this extension, but do not wish to specify usages.
 
bool server_auth
 TLS WWW server auth. Consistent with digital_signature, key_encipherment, key_agreement.
 
bool client_auth
 TLS WWW client auth. Consistent with digital_signature, key_agreement.
 
bool code_signing
 Signing of downloadable code. Consistent with digital_signature.
 
bool email_protection
 Email protection. Consistent with digital_signature, content_commitment, key_encipherment, key_agreement.
 
bool time_stamping
 Binding the hash of an object to a time. Consistent with digital_signature, content_commitment.
 
bool ocsp_signing
 Signing OCSP responses. Consistent with digital_signature, content_commitment.
 
std::vector< oid_value > additional_usage_ids
 Key usage ids not in the list above.
 
- Public Attributes inherited from scc::crypto::ExtBase
oid_value oid
 The oid of the extension.
 
bool critical
 Is the extension marked critical? If a CRL contains a critical extension that cannot be processed, it must not be used to determine the status of certificates.
 
BasePtr value
 Parsed extension value.
 

Detailed Description

Extended key usage.

https://tools.ietf.org/html/rfc5280#section-4.2.1.12

ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId

KeyPurposeId ::= OBJECT IDENTIFIER

Extended key usage must be consistent with key usage.

Definition at line 911 of file cert.h.

Member Function Documentation

◆ implemented()

virtual bool scc::crypto::ExtExtendedKeyUsage::implemented ( ) const
inlinevirtual

Is this implemented (sub-classed)?

If an extension is marked critical, but is unrecognized, it is not recommended for the service to proceed using the certificate.

Reimplemented from scc::crypto::ExtBase.

Definition at line 924 of file cert.h.


The documentation for this struct was generated from the following file: