Lines Matching refs:pval
24 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
25 static int bn_secure_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
26 static void bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
28 static int bn_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype,
30 static int bn_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
32 static int bn_secure_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
34 static int bn_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it,
65 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_ITEM_start()
67 *pval = (ASN1_VALUE *)BN_new(); in ASN1_ITEM_start()
68 if (*pval != NULL) in ASN1_ITEM_start()
74 static int bn_secure_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in bn_secure_new() argument
76 *pval = (ASN1_VALUE *)BN_secure_new(); in bn_secure_new()
77 if (*pval != NULL) in bn_secure_new()
83 static void bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in bn_free() argument
85 if (*pval == NULL) in bn_free()
88 BN_clear_free((BIGNUM *)*pval); in bn_free()
90 BN_free((BIGNUM *)*pval); in bn_free()
91 *pval = NULL; in bn_free()
94 static int bn_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, in bn_i2c() argument
99 if (*pval == NULL) in bn_i2c()
101 bn = (BIGNUM *)*pval; in bn_i2c()
115 static int bn_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, in bn_c2i() argument
120 if (*pval == NULL && !bn_new(pval, it)) in bn_c2i()
122 bn = (BIGNUM *)*pval; in bn_c2i()
124 bn_free(pval, it); in bn_c2i()
130 static int bn_secure_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, in bn_secure_c2i() argument
136 if (*pval == NULL && !bn_secure_new(pval, it)) in bn_secure_c2i()
139 ret = bn_c2i(pval, cont, len, utype, free_cont, it); in bn_secure_c2i()
144 bn = (BIGNUM *)*pval; in bn_secure_c2i()
149 static int bn_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, in bn_print() argument
152 if (!BN_print(out, *(BIGNUM **)pval)) in bn_print()