Lines Matching refs:pval
29 static int uint64_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_new() argument
31 if ((*pval = (ASN1_VALUE *)OPENSSL_zalloc(sizeof(uint64_t))) == NULL) in uint64_new()
36 static void uint64_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_free() argument
38 OPENSSL_free(*pval); in uint64_free()
39 *pval = NULL; in uint64_free()
42 static void uint64_clear(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_clear() argument
44 **(uint64_t **)pval = 0; in uint64_clear()
47 static int uint64_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, in uint64_i2c() argument
53 char *cp = (char *)*pval; in uint64_i2c()
71 static int uint64_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, in uint64_c2i() argument
78 if (*pval == NULL && !uint64_new(pval, it)) in uint64_c2i()
81 cp = (char *)*pval; in uint64_c2i()
112 static int uint64_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, in uint64_print() argument
116 return BIO_printf(out, "%jd\n", **(int64_t **)pval); in uint64_print()
117 return BIO_printf(out, "%ju\n", **(uint64_t **)pval); in uint64_print()
122 static int uint32_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint32_new() argument
124 if ((*pval = (ASN1_VALUE *)OPENSSL_zalloc(sizeof(uint32_t))) == NULL) in uint32_new()
129 static void uint32_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint32_free() argument
131 OPENSSL_free(*pval); in uint32_free()
132 *pval = NULL; in uint32_free()
135 static void uint32_clear(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint32_clear() argument
137 **(uint32_t **)pval = 0; in uint32_clear()
140 static int uint32_i2c(const ASN1_VALUE **pval, unsigned char *cont, int *putype, in uint32_i2c() argument
146 char *cp = (char *)*pval; in uint32_i2c()
171 static int uint32_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, in uint32_c2i() argument
179 if (*pval == NULL && !uint64_new(pval, it)) in uint32_c2i()
182 cp = (char *)*pval; in uint32_c2i()
219 static int uint32_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, in uint32_print() argument
223 return BIO_printf(out, "%d\n", (int)**(int32_t **)pval); in uint32_print()
224 return BIO_printf(out, "%u\n", (unsigned int)**(uint32_t **)pval); in uint32_print()