Lines Matching refs:val
73 OSSL_IETF_ATTR_SYNTAX_VALUE *val; variable
75 val = sk_OSSL_IETF_ATTR_SYNTAX_VALUE_value(ias->values, i);
77 ias->type = val->type;
78 else if (val->type != ias->type)
122 OSSL_IETF_ATTR_SYNTAX_VALUE *val; in OSSL_IETF_ATTR_SYNTAX_get0_value() local
124 val = sk_OSSL_IETF_ATTR_SYNTAX_VALUE_value(a->values, ind); in OSSL_IETF_ATTR_SYNTAX_get0_value()
125 if (val == NULL) in OSSL_IETF_ATTR_SYNTAX_get0_value()
129 *type = val->type; in OSSL_IETF_ATTR_SYNTAX_get0_value()
131 switch (val->type) { in OSSL_IETF_ATTR_SYNTAX_get0_value()
133 return val->u.octets; in OSSL_IETF_ATTR_SYNTAX_get0_value()
135 return val->u.oid; in OSSL_IETF_ATTR_SYNTAX_get0_value()
137 return val->u.string; in OSSL_IETF_ATTR_SYNTAX_get0_value()
146 OSSL_IETF_ATTR_SYNTAX_VALUE *val; in OSSL_IETF_ATTR_SYNTAX_add1_value() local
162 if ((val = OSSL_IETF_ATTR_SYNTAX_VALUE_new()) == NULL) in OSSL_IETF_ATTR_SYNTAX_add1_value()
165 val->type = type; in OSSL_IETF_ATTR_SYNTAX_add1_value()
168 val->u.octets = data; in OSSL_IETF_ATTR_SYNTAX_add1_value()
171 val->u.oid = data; in OSSL_IETF_ATTR_SYNTAX_add1_value()
174 val->u.string = data; in OSSL_IETF_ATTR_SYNTAX_add1_value()
177 OSSL_IETF_ATTR_SYNTAX_VALUE_free(val); in OSSL_IETF_ATTR_SYNTAX_add1_value()
182 if (sk_OSSL_IETF_ATTR_SYNTAX_VALUE_push(a->values, val) <= 0) { in OSSL_IETF_ATTR_SYNTAX_add1_value()
183 OSSL_IETF_ATTR_SYNTAX_VALUE_free(val); in OSSL_IETF_ATTR_SYNTAX_add1_value()