Lines Matching refs:pval
29 static int uint64_new(ASN1_VALUE **pval, const ASN1_ITEM *it)
31 if ((*pval = (ASN1_VALUE *)OPENSSL_zalloc(sizeof(uint64_t))) == NULL) {
38 static void uint64_free(ASN1_VALUE **pval, const ASN1_ITEM *it)
40 OPENSSL_free(*pval);
41 *pval = NULL;
44 static void uint64_clear(ASN1_VALUE **pval, const ASN1_ITEM *it)
46 **(uint64_t **)pval = 0;
49 static int uint64_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype,
55 char *cp = (char *)*pval;
73 static int uint64_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
80 if (*pval == NULL && !uint64_new(pval, it))
83 cp = (char *)*pval;
114 static int uint64_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it,
118 return BIO_printf(out, "%jd\n", **(int64_t **)pval);
119 return BIO_printf(out, "%ju\n", **(uint64_t **)pval);
124 static int uint32_new(ASN1_VALUE **pval, const ASN1_ITEM *it)
126 if ((*pval = (ASN1_VALUE *)OPENSSL_zalloc(sizeof(uint32_t))) == NULL) {
133 static void uint32_free(ASN1_VALUE **pval, const ASN1_ITEM *it)
135 OPENSSL_free(*pval);
136 *pval = NULL;
139 static void uint32_clear(ASN1_VALUE **pval, const ASN1_ITEM *it)
141 **(uint32_t **)pval = 0;
144 static int uint32_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype,
150 char *cp = (char *)*pval;
175 static int uint32_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
183 if (*pval == NULL && !uint64_new(pval, it))
186 cp = (char *)*pval;
223 static int uint32_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it,
227 return BIO_printf(out, "%d\n", **(int32_t **)pval);
228 return BIO_printf(out, "%u\n", **(uint32_t **)pval);