Lines Matching refs:pval
71 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
72 static void bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
74 static int bn_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it);
75 static int bn_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont…
94 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_ITEM_start()
96 *pval = (ASN1_VALUE *)BN_new(); in ASN1_ITEM_start()
97 if(*pval) return 1; in ASN1_ITEM_start()
101 static void bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in bn_free() argument
103 if(!*pval) return; in bn_free()
104 if(it->size & BN_SENSITIVE) BN_clear_free((BIGNUM *)*pval); in bn_free()
105 else BN_free((BIGNUM *)*pval); in bn_free()
106 *pval = NULL; in bn_free()
109 static int bn_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it) in bn_i2c() argument
113 if(!*pval) return -1; in bn_i2c()
114 bn = (BIGNUM *)*pval; in bn_i2c()
125 static int bn_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, in bn_c2i() argument
129 if(!*pval) in bn_c2i()
131 if (!bn_new(pval, it)) in bn_c2i()
136 bn = (BIGNUM *)*pval; in bn_c2i()
138 bn_free(pval, it); in bn_c2i()