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)
67 *pval = (ASN1_VALUE *)BN_new();
68 if (*pval != NULL)
74 static int bn_secure_new(ASN1_VALUE **pval, const ASN1_ITEM *it)
76 *pval = (ASN1_VALUE *)BN_secure_new();
77 if (*pval != NULL)
83 static void bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it)
85 if (*pval == NULL)
88 BN_clear_free((BIGNUM *)*pval);
90 BN_free((BIGNUM *)*pval);
91 *pval = NULL;
94 static int bn_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype,
99 if (*pval == NULL)
101 bn = (BIGNUM *)*pval;
115 static int bn_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
120 if (*pval == NULL && !bn_new(pval, it))
122 bn = (BIGNUM *)*pval;
124 bn_free(pval, it);
130 static int bn_secure_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
136 if (*pval == NULL && !bn_secure_new(pval, it))
139 ret = bn_c2i(pval, cont, len, utype, free_cont, it);
144 bn = (BIGNUM *)*pval;
149 static int bn_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it,
152 if (!BN_print(out, *(BIGNUM **)pval))