Eneboo - Documentación para desarrolladores
Clases | 'defines' | Funciones | Variables
Referencia del Archivo src/libdigidoc/openssl/crypto/store/str_lib.c
#include <string.h>
#include <openssl/bn.h>
#include <openssl/err.h>
#include <openssl/engine.h>
#include <openssl/sha.h>
#include <openssl/x509.h>
#include "str_locl.h"

Clases

struct  STORE_attr_info_st
struct  attr_list_ctx_st

'defines'

#define check_store(s, fncode, fnname, fnerrcode)
#define ATTR_IS_SET(a, i)
#define SET_ATTRBIT(a, i)   ((a)->set[(i) / 8] |= (1 << ((i) % 8)))
#define CLEAR_ATTRBIT(a, i)   ((a)->set[(i) / 8] &= ~(1 << ((i) % 8)))

Funciones

STORESTORE_new_method (const STORE_METHOD *method)
STORESTORE_new_engine (ENGINE *engine)
void STORE_free (STORE *store)
int STORE_ctrl (STORE *store, int cmd, long i, void *p, void(*f)(void))
int STORE_get_ex_new_index (long argl, void *argp, CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func)
int STORE_set_ex_data (STORE *r, int idx, void *arg)
void * STORE_get_ex_data (STORE *r, int idx)
const STORE_METHODSTORE_get_method (STORE *store)
const STORE_METHODSTORE_set_method (STORE *store, const STORE_METHOD *meth)
X509STORE_get_certificate (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_store_certificate (STORE *s, X509 *data, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_modify_certificate (STORE *s, OPENSSL_ITEM search_attributes[], OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[])
int STORE_revoke_certificate (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_delete_certificate (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
void * STORE_list_certificate_start (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
X509STORE_list_certificate_next (STORE *s, void *handle)
int STORE_list_certificate_end (STORE *s, void *handle)
int STORE_list_certificate_endp (STORE *s, void *handle)
EVP_PKEYSTORE_generate_key (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
EVP_PKEYSTORE_get_private_key (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_store_private_key (STORE *s, EVP_PKEY *data, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_modify_private_key (STORE *s, OPENSSL_ITEM search_attributes[], OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[])
int STORE_revoke_private_key (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_delete_private_key (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
void * STORE_list_private_key_start (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
EVP_PKEYSTORE_list_private_key_next (STORE *s, void *handle)
int STORE_list_private_key_end (STORE *s, void *handle)
int STORE_list_private_key_endp (STORE *s, void *handle)
EVP_PKEYSTORE_get_public_key (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_store_public_key (STORE *s, EVP_PKEY *data, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_modify_public_key (STORE *s, OPENSSL_ITEM search_attributes[], OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[])
int STORE_revoke_public_key (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_delete_public_key (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
void * STORE_list_public_key_start (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
EVP_PKEYSTORE_list_public_key_next (STORE *s, void *handle)
int STORE_list_public_key_end (STORE *s, void *handle)
int STORE_list_public_key_endp (STORE *s, void *handle)
X509_CRLSTORE_generate_crl (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
X509_CRLSTORE_get_crl (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_store_crl (STORE *s, X509_CRL *data, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_modify_crl (STORE *s, OPENSSL_ITEM search_attributes[], OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[])
int STORE_delete_crl (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
void * STORE_list_crl_start (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
X509_CRLSTORE_list_crl_next (STORE *s, void *handle)
int STORE_list_crl_end (STORE *s, void *handle)
int STORE_list_crl_endp (STORE *s, void *handle)
int STORE_store_number (STORE *s, BIGNUM *data, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_modify_number (STORE *s, OPENSSL_ITEM search_attributes[], OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[])
BIGNUMSTORE_get_number (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_delete_number (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_store_arbitrary (STORE *s, BUF_MEM *data, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_modify_arbitrary (STORE *s, OPENSSL_ITEM search_attributes[], OPENSSL_ITEM add_attributes[], OPENSSL_ITEM modify_attributes[], OPENSSL_ITEM delete_attributes[], OPENSSL_ITEM parameters[])
BUF_MEMSTORE_get_arbitrary (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
int STORE_delete_arbitrary (STORE *s, OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
STORE_OBJECTSTORE_OBJECT_new (void)
void STORE_OBJECT_free (STORE_OBJECT *data)
STORE_ATTR_INFOSTORE_ATTR_INFO_new (void)
int STORE_ATTR_INFO_free (STORE_ATTR_INFO *attrs)
char * STORE_ATTR_INFO_get0_cstr (STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code)
unsigned char * STORE_ATTR_INFO_get0_sha1str (STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code)
X509_NAMESTORE_ATTR_INFO_get0_dn (STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code)
BIGNUMSTORE_ATTR_INFO_get0_number (STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code)
int STORE_ATTR_INFO_set_cstr (STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, char *cstr, size_t cstr_size)
int STORE_ATTR_INFO_set_sha1str (STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, unsigned char *sha1str, size_t sha1str_size)
int STORE_ATTR_INFO_set_dn (STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, X509_NAME *dn)
int STORE_ATTR_INFO_set_number (STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, BIGNUM *number)
int STORE_ATTR_INFO_modify_cstr (STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, char *cstr, size_t cstr_size)
int STORE_ATTR_INFO_modify_sha1str (STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, unsigned char *sha1str, size_t sha1str_size)
int STORE_ATTR_INFO_modify_dn (STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, X509_NAME *dn)
int STORE_ATTR_INFO_modify_number (STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, BIGNUM *number)
void * STORE_parse_attrs_start (OPENSSL_ITEM *attributes)
STORE_ATTR_INFOSTORE_parse_attrs_next (void *handle)
int STORE_parse_attrs_end (void *handle)
int STORE_parse_attrs_endp (void *handle)
int STORE_ATTR_INFO_compare (STORE_ATTR_INFO *a, STORE_ATTR_INFO *b)
int STORE_ATTR_INFO_in_range (STORE_ATTR_INFO *a, STORE_ATTR_INFO *b)
int STORE_ATTR_INFO_in (STORE_ATTR_INFO *a, STORE_ATTR_INFO *b)
int STORE_ATTR_INFO_in_ex (STORE_ATTR_INFO *a, STORE_ATTR_INFO *b)

Variables

const char *const STORE_object_type_string [STORE_OBJECT_TYPE_NUM+1]
const int STORE_param_sizes [STORE_PARAM_TYPE_NUM+1]
const int STORE_attr_sizes [STORE_ATTR_TYPE_NUM+1]

Documentación de los 'defines'

#define ATTR_IS_SET (   a,
 
)
Valor:
((i) > 0 && (i) < STORE_ATTR_TYPE_NUM \
                                && ((a)->set[(i) / 8] & (1 << ((i) % 8))))
#define check_store (   s,
  fncode,
  fnname,
  fnerrcode 
)
Valor:
do \
                { \
                if ((s) == NULL || (s)->meth == NULL) \
                        { \
                        STOREerr((fncode), ERR_R_PASSED_NULL_PARAMETER); \
                        return 0; \
                        } \
                if ((s)->meth->fnname == NULL) \
                        { \
                        STOREerr((fncode), (fnerrcode)); \
                        return 0; \
                        } \
                } \
        while(0)
#define CLEAR_ATTRBIT (   a,
 
)    ((a)->set[(i) / 8] &= ~(1 << ((i) % 8)))
#define SET_ATTRBIT (   a,
 
)    ((a)->set[(i) / 8] |= (1 << ((i) % 8)))

Documentación de las funciones

int STORE_ATTR_INFO_compare ( STORE_ATTR_INFO a,
STORE_ATTR_INFO b 
)
int STORE_ATTR_INFO_free ( STORE_ATTR_INFO attrs)
char* STORE_ATTR_INFO_get0_cstr ( STORE_ATTR_INFO attrs,
STORE_ATTR_TYPES  code 
)
X509_NAME* STORE_ATTR_INFO_get0_dn ( STORE_ATTR_INFO attrs,
STORE_ATTR_TYPES  code 
)
BIGNUM* STORE_ATTR_INFO_get0_number ( STORE_ATTR_INFO attrs,
STORE_ATTR_TYPES  code 
)
unsigned char* STORE_ATTR_INFO_get0_sha1str ( STORE_ATTR_INFO attrs,
STORE_ATTR_TYPES  code 
)
int STORE_ATTR_INFO_in ( STORE_ATTR_INFO a,
STORE_ATTR_INFO b 
)
int STORE_ATTR_INFO_in_ex ( STORE_ATTR_INFO a,
STORE_ATTR_INFO b 
)
int STORE_ATTR_INFO_in_range ( STORE_ATTR_INFO a,
STORE_ATTR_INFO b 
)
int STORE_ATTR_INFO_modify_cstr ( STORE_ATTR_INFO attrs,
STORE_ATTR_TYPES  code,
char *  cstr,
size_t  cstr_size 
)
int STORE_ATTR_INFO_modify_dn ( STORE_ATTR_INFO attrs,
STORE_ATTR_TYPES  code,
X509_NAME dn 
)
int STORE_ATTR_INFO_modify_number ( STORE_ATTR_INFO attrs,
STORE_ATTR_TYPES  code,
BIGNUM number 
)
int STORE_ATTR_INFO_modify_sha1str ( STORE_ATTR_INFO attrs,
STORE_ATTR_TYPES  code,
unsigned char *  sha1str,
size_t  sha1str_size 
)
STORE_ATTR_INFO* STORE_ATTR_INFO_new ( void  )
int STORE_ATTR_INFO_set_cstr ( STORE_ATTR_INFO attrs,
STORE_ATTR_TYPES  code,
char *  cstr,
size_t  cstr_size 
)
int STORE_ATTR_INFO_set_dn ( STORE_ATTR_INFO attrs,
STORE_ATTR_TYPES  code,
X509_NAME dn 
)
int STORE_ATTR_INFO_set_number ( STORE_ATTR_INFO attrs,
STORE_ATTR_TYPES  code,
BIGNUM number 
)
int STORE_ATTR_INFO_set_sha1str ( STORE_ATTR_INFO attrs,
STORE_ATTR_TYPES  code,
unsigned char *  sha1str,
size_t  sha1str_size 
)
int STORE_ctrl ( STORE store,
int  cmd,
long  i,
void *  p,
void(*)(void)  f 
)
int STORE_delete_arbitrary ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_delete_certificate ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_delete_crl ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_delete_number ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_delete_private_key ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_delete_public_key ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
void STORE_free ( STORE store)
X509_CRL* STORE_generate_crl ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
EVP_PKEY* STORE_generate_key ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
BUF_MEM* STORE_get_arbitrary ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
X509* STORE_get_certificate ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
X509_CRL* STORE_get_crl ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
void* STORE_get_ex_data ( STORE r,
int  idx 
)
int STORE_get_ex_new_index ( long  argl,
void *  argp,
CRYPTO_EX_new new_func,
CRYPTO_EX_dup dup_func,
CRYPTO_EX_free free_func 
)
const STORE_METHOD* STORE_get_method ( STORE store)
BIGNUM* STORE_get_number ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
EVP_PKEY* STORE_get_private_key ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
EVP_PKEY* STORE_get_public_key ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_list_certificate_end ( STORE s,
void *  handle 
)
int STORE_list_certificate_endp ( STORE s,
void *  handle 
)
X509* STORE_list_certificate_next ( STORE s,
void *  handle 
)
void* STORE_list_certificate_start ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_list_crl_end ( STORE s,
void *  handle 
)
int STORE_list_crl_endp ( STORE s,
void *  handle 
)
X509_CRL* STORE_list_crl_next ( STORE s,
void *  handle 
)
void* STORE_list_crl_start ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_list_private_key_end ( STORE s,
void *  handle 
)
int STORE_list_private_key_endp ( STORE s,
void *  handle 
)
EVP_PKEY* STORE_list_private_key_next ( STORE s,
void *  handle 
)
void* STORE_list_private_key_start ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_list_public_key_end ( STORE s,
void *  handle 
)
int STORE_list_public_key_endp ( STORE s,
void *  handle 
)
EVP_PKEY* STORE_list_public_key_next ( STORE s,
void *  handle 
)
void* STORE_list_public_key_start ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_modify_arbitrary ( STORE s,
OPENSSL_ITEM  search_attributes[],
OPENSSL_ITEM  add_attributes[],
OPENSSL_ITEM  modify_attributes[],
OPENSSL_ITEM  delete_attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_modify_certificate ( STORE s,
OPENSSL_ITEM  search_attributes[],
OPENSSL_ITEM  add_attributes[],
OPENSSL_ITEM  modify_attributes[],
OPENSSL_ITEM  delete_attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_modify_crl ( STORE s,
OPENSSL_ITEM  search_attributes[],
OPENSSL_ITEM  add_attributes[],
OPENSSL_ITEM  modify_attributes[],
OPENSSL_ITEM  delete_attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_modify_number ( STORE s,
OPENSSL_ITEM  search_attributes[],
OPENSSL_ITEM  add_attributes[],
OPENSSL_ITEM  modify_attributes[],
OPENSSL_ITEM  delete_attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_modify_private_key ( STORE s,
OPENSSL_ITEM  search_attributes[],
OPENSSL_ITEM  add_attributes[],
OPENSSL_ITEM  modify_attributes[],
OPENSSL_ITEM  delete_attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_modify_public_key ( STORE s,
OPENSSL_ITEM  search_attributes[],
OPENSSL_ITEM  add_attributes[],
OPENSSL_ITEM  modify_attributes[],
OPENSSL_ITEM  delete_attributes[],
OPENSSL_ITEM  parameters[] 
)
STORE* STORE_new_engine ( ENGINE engine)
STORE* STORE_new_method ( const STORE_METHOD method)
void STORE_OBJECT_free ( STORE_OBJECT data)
STORE_OBJECT* STORE_OBJECT_new ( void  )
int STORE_parse_attrs_end ( void *  handle)
int STORE_parse_attrs_endp ( void *  handle)
STORE_ATTR_INFO* STORE_parse_attrs_next ( void *  handle)
void* STORE_parse_attrs_start ( OPENSSL_ITEM attributes)
int STORE_revoke_certificate ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_revoke_private_key ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_revoke_public_key ( STORE s,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_set_ex_data ( STORE r,
int  idx,
void *  arg 
)
const STORE_METHOD* STORE_set_method ( STORE store,
const STORE_METHOD meth 
)
int STORE_store_arbitrary ( STORE s,
BUF_MEM data,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_store_certificate ( STORE s,
X509 data,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_store_crl ( STORE s,
X509_CRL data,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_store_number ( STORE s,
BIGNUM data,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_store_private_key ( STORE s,
EVP_PKEY data,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)
int STORE_store_public_key ( STORE s,
EVP_PKEY data,
OPENSSL_ITEM  attributes[],
OPENSSL_ITEM  parameters[] 
)

Documentación de las variables

const int STORE_attr_sizes[STORE_ATTR_TYPE_NUM+1]
Valor inicial:
        {
        0,
        -1,                     
        SHA_DIGEST_LENGTH,      
        SHA_DIGEST_LENGTH,      
        SHA_DIGEST_LENGTH,      
        SHA_DIGEST_LENGTH,      
        sizeof(X509_NAME *),    
        sizeof(BIGNUM *),       
        sizeof(X509_NAME *),    
        SHA_DIGEST_LENGTH,      
        -1,                     
        -1,                     
        }
const char* const STORE_object_type_string[STORE_OBJECT_TYPE_NUM+1]
Valor inicial:
        {
        0,
        "X.509 Certificate",
        "X.509 CRL",
        "Private Key",
        "Public Key",
        "Number",
        "Arbitrary Data"
        }
const int STORE_param_sizes[STORE_PARAM_TYPE_NUM+1]
Valor inicial:
        {
        0,
        sizeof(int),            
        sizeof(size_t),         
        -1,                     
        0                       
        }
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'