Lines Matching refs:prop
347 OSSL_PROPERTY_DEFINITION *prop = NULL; in ossl_parse_property() local
361 prop = OPENSSL_malloc(sizeof(*prop)); in ossl_parse_property()
362 if (prop == NULL) in ossl_parse_property()
364 memset(&prop->v, 0, sizeof(prop->v)); in ossl_parse_property()
365 prop->optional = 0; in ossl_parse_property()
366 if (!parse_name(ctx, &s, 1, &prop->name_idx)) in ossl_parse_property()
368 prop->oper = OSSL_PROPERTY_OPER_EQ; in ossl_parse_property()
369 if (prop->name_idx == 0) { in ossl_parse_property()
375 if (!parse_value(ctx, &s, prop, 1)) { in ossl_parse_property()
382 prop->type = OSSL_PROPERTY_TYPE_STRING; in ossl_parse_property()
383 prop->v.str_val = OSSL_PROPERTY_TRUE; in ossl_parse_property()
386 if (!sk_OSSL_PROPERTY_DEFINITION_push(sk, prop)) in ossl_parse_property()
388 prop = NULL; in ossl_parse_property()
399 OPENSSL_free(prop); in ossl_parse_property()
409 OSSL_PROPERTY_DEFINITION *prop = NULL; in ossl_parse_query() local
418 prop = OPENSSL_malloc(sizeof(*prop)); in ossl_parse_query()
419 if (prop == NULL) in ossl_parse_query()
421 memset(&prop->v, 0, sizeof(prop->v)); in ossl_parse_query()
424 prop->oper = OSSL_PROPERTY_OVERRIDE; in ossl_parse_query()
425 prop->optional = 0; in ossl_parse_query()
426 if (!parse_name(ctx, &s, 1, &prop->name_idx)) in ossl_parse_query()
430 prop->optional = match_ch(&s, '?'); in ossl_parse_query()
431 if (!parse_name(ctx, &s, 1, &prop->name_idx)) in ossl_parse_query()
435 prop->oper = OSSL_PROPERTY_OPER_EQ; in ossl_parse_query()
437 prop->oper = OSSL_PROPERTY_OPER_NE; in ossl_parse_query()
440 prop->oper = OSSL_PROPERTY_OPER_EQ; in ossl_parse_query()
441 prop->type = OSSL_PROPERTY_TYPE_STRING; in ossl_parse_query()
442 prop->v.str_val = OSSL_PROPERTY_TRUE; in ossl_parse_query()
445 if (!parse_value(ctx, &s, prop, create_values)) in ossl_parse_query()
446 prop->type = OSSL_PROPERTY_TYPE_VALUE_UNDEFINED; in ossl_parse_query()
449 if (!sk_OSSL_PROPERTY_DEFINITION_push(sk, prop)) in ossl_parse_query()
451 prop = NULL; in ossl_parse_query()
462 OPENSSL_free(prop); in ossl_parse_query()
703 const OSSL_PROPERTY_DEFINITION *prop = NULL; in ossl_property_list_to_string() local
713 prop = &list->properties[list->num_properties - 1]; in ossl_property_list_to_string()
714 for (i = 0; i < list->num_properties; i++, prop--) { in ossl_property_list_to_string()
716 if (prop->name_idx == 0) in ossl_property_list_to_string()
722 if (prop->optional) in ossl_property_list_to_string()
724 else if (prop->oper == OSSL_PROPERTY_OVERRIDE) in ossl_property_list_to_string()
727 val = ossl_property_name_str(ctx, prop->name_idx); in ossl_property_list_to_string()
732 switch (prop->oper) { in ossl_property_list_to_string()
739 switch (prop->type) { in ossl_property_list_to_string()
741 val = ossl_property_value_str(ctx, prop->v.str_val); in ossl_property_list_to_string()
748 put_num(prop->v.int_val, &buf, &bufsize, &needed); in ossl_property_list_to_string()