ASN1_STRING_new 3 2008-05-09 0.9.9-dev OpenSSL
NAME
ASN1_STRING_new, ASN1_STRING_type_new, ASN1_STRING_free -
ASN1_STRING allocation functions
LIBRARY
libcrypto, -lcrypto
SYNOPSIS
#include
ASN1_STRING * ASN1_STRING_new(void);
ASN1_STRING * ASN1_STRING_type_new(int type);
void ASN1_STRING_free(ASN1_STRING *a);
DESCRIPTION
_A_S_N_1___S_T_R_I_N_G___n_e_w_(_) returns an allocated AASSNN11__SSTTRRIINNGG structure. Its type
is undefined.
_A_S_N_1___S_T_R_I_N_G___t_y_p_e___n_e_w_(_) returns an allocated AASSNN11__SSTTRRIINNGG structure of
type ttyyppee.
_A_S_N_1___S_T_R_I_N_G___f_r_e_e_(_) frees up aa.
NOTES
Other string types call the AASSNN11__SSTTRRIINNGG functions. For example
_A_S_N_1___O_C_T_E_T___S_T_R_I_N_G___n_e_w_(_) calls ASN1_STRING_type(V_ASN1_OCTET_STRING).
RETURN VALUES
_A_S_N_1___S_T_R_I_N_G___n_e_w_(_) and _A_S_N_1___S_T_R_I_N_G___t_y_p_e___n_e_w_(_) return a valid
ASN1_STRING structure or NNUULLLL if an error occurred.
_A_S_N_1___S_T_R_I_N_G___f_r_e_e_(_) does not return a value.
SEE ALSO
_E_R_R___g_e_t___e_r_r_o_r(3)
HISTORY
TBA