Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions
oid_registry.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Enumerations

enum  OID {
  OID_id_dsa_with_sha1, OID_id_dsa, OID_id_ecdsa_with_sha1, OID_id_ecPublicKey,
  OID_rsaEncryption, OID_md2WithRSAEncryption, OID_md3WithRSAEncryption, OID_md4WithRSAEncryption,
  OID_sha1WithRSAEncryption, OID_sha256WithRSAEncryption, OID_sha384WithRSAEncryption, OID_sha512WithRSAEncryption,
  OID_sha224WithRSAEncryption, OID_data, OID_signed_data, OID_email_address,
  OID_content_type, OID_messageDigest, OID_signingTime, OID_smimeCapabilites,
  OID_smimeAuthenticatedAttrs, OID_md2, OID_md4, OID_md5,
  OID_certAuthInfoAccess, OID_msOutlookExpress, OID_sha1, OID_commonName,
  OID_surname, OID_countryName, OID_locality, OID_stateOrProvinceName,
  OID_organizationName, OID_organizationUnitName, OID_title, OID_description,
  OID_name, OID_givenName, OID_initials, OID_generationalQualifier,
  OID_subjectKeyIdentifier, OID_keyUsage, OID_subjectAltName, OID_issuerAltName,
  OID_basicConstraints, OID_crlDistributionPoints, OID_certPolicies, OID_authorityKeyIdentifier,
  OID_extKeyUsage, OID__NR
}
 

Functions

enum OID look_up_OID (const void *data, size_t datasize)
 
int sprint_oid (const void *, size_t, char *, size_t)
 
int sprint_OID (enum OID, char *, size_t)
 

Enumeration Type Documentation

enum OID
Enumerator:
OID_id_dsa_with_sha1 
OID_id_dsa 
OID_id_ecdsa_with_sha1 
OID_id_ecPublicKey 
OID_rsaEncryption 
OID_md2WithRSAEncryption 
OID_md3WithRSAEncryption 
OID_md4WithRSAEncryption 
OID_sha1WithRSAEncryption 
OID_sha256WithRSAEncryption 
OID_sha384WithRSAEncryption 
OID_sha512WithRSAEncryption 
OID_sha224WithRSAEncryption 
OID_data 
OID_signed_data 
OID_email_address 
OID_content_type 
OID_messageDigest 
OID_signingTime 
OID_smimeCapabilites 
OID_smimeAuthenticatedAttrs 
OID_md2 
OID_md4 
OID_md5 
OID_certAuthInfoAccess 
OID_msOutlookExpress 
OID_sha1 
OID_commonName 
OID_surname 
OID_countryName 
OID_locality 
OID_stateOrProvinceName 
OID_organizationName 
OID_organizationUnitName 
OID_title 
OID_description 
OID_name 
OID_givenName 
OID_initials 
OID_generationalQualifier 
OID_subjectKeyIdentifier 
OID_keyUsage 
OID_subjectAltName 
OID_issuerAltName 
OID_basicConstraints 
OID_crlDistributionPoints 
OID_certPolicies 
OID_authorityKeyIdentifier 
OID_extKeyUsage 
OID__NR 

Definition at line 23 of file oid_registry.h.

Function Documentation

enum OID look_up_OID ( const void data,
size_t  datasize 
)

look_up_OID - Find an OID registration for the specified data : Binary representation of the OID : Size of the binary representation

Definition at line 24 of file oid_registry.c.

int sprint_oid ( const void ,
size_t  ,
char ,
size_t   
)

Definition at line 105 of file oid_registry.c.

int sprint_OID ( enum OID  oid,
char buffer,
size_t  bufsize 
)

sprint_OID - Print an Object Identifier into a buffer : The OID to print : The buffer to render into : The size of the buffer

The OID is rendered into the buffer in "a.b.c.d" format and the number of bytes is returned.

Definition at line 158 of file oid_registry.c.