Lines Matching defs:code

12  * 1. Redistributions of source code must retain the above copyright
1286 STORE_ATTR_TYPES code)
1288 if (ATTR_IS_SET(attrs,code))
1290 switch(code)
1295 STORE_ATTR_INFO_modify_cstr(attrs, code, NULL, 0);
1302 STORE_ATTR_INFO_modify_sha1str(attrs, code, NULL, 0);
1306 STORE_ATTR_INFO_modify_dn(attrs, code, NULL);
1309 STORE_ATTR_INFO_modify_number(attrs, code, NULL);
1327 char *STORE_ATTR_INFO_get0_cstr(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code)
1335 if (ATTR_IS_SET(attrs,code))
1336 return attrs->values[code].cstring;
1342 STORE_ATTR_TYPES code)
1350 if (ATTR_IS_SET(attrs,code))
1351 return attrs->values[code].sha1string;
1356 X509_NAME *STORE_ATTR_INFO_get0_dn(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code)
1364 if (ATTR_IS_SET(attrs,code))
1365 return attrs->values[code].dn;
1370 BIGNUM *STORE_ATTR_INFO_get0_number(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code)
1378 if (ATTR_IS_SET(attrs,code))
1379 return attrs->values[code].number;
1384 int STORE_ATTR_INFO_set_cstr(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code,
1393 if (!ATTR_IS_SET(attrs,code))
1395 if ((attrs->values[code].cstring = BUF_strndup(cstr, cstr_size)))
1404 int STORE_ATTR_INFO_set_sha1str(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code,
1413 if (!ATTR_IS_SET(attrs,code))
1415 if ((attrs->values[code].sha1string =
1426 int STORE_ATTR_INFO_set_dn(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code,
1435 if (!ATTR_IS_SET(attrs,code))
1437 if ((attrs->values[code].dn = X509_NAME_dup(dn)))
1446 int STORE_ATTR_INFO_set_number(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code,
1455 if (!ATTR_IS_SET(attrs,code))
1457 if ((attrs->values[code].number = BN_dup(number)))
1466 int STORE_ATTR_INFO_modify_cstr(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code,
1475 if (ATTR_IS_SET(attrs,code))
1477 OPENSSL_free(attrs->values[code].cstring);
1478 attrs->values[code].cstring = NULL;
1479 CLEAR_ATTRBIT(attrs, code);
1481 return STORE_ATTR_INFO_set_cstr(attrs, code, cstr, cstr_size);
1483 int STORE_ATTR_INFO_modify_sha1str(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code,
1492 if (ATTR_IS_SET(attrs,code))
1494 OPENSSL_free(attrs->values[code].sha1string);
1495 attrs->values[code].sha1string = NULL;
1496 CLEAR_ATTRBIT(attrs, code);
1498 return STORE_ATTR_INFO_set_sha1str(attrs, code, sha1str, sha1str_size);
1500 int STORE_ATTR_INFO_modify_dn(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code,
1509 if (ATTR_IS_SET(attrs,code))
1511 OPENSSL_free(attrs->values[code].dn);
1512 attrs->values[code].dn = NULL;
1513 CLEAR_ATTRBIT(attrs, code);
1515 return STORE_ATTR_INFO_set_dn(attrs, code, dn);
1517 int STORE_ATTR_INFO_modify_number(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code,
1526 if (ATTR_IS_SET(attrs,code))
1528 OPENSSL_free(attrs->values[code].number);
1529 attrs->values[code].number = NULL;
1530 CLEAR_ATTRBIT(attrs, code);
1532 return STORE_ATTR_INFO_set_number(attrs, code, number);
1564 && context->attributes->code != STORE_ATTR_OR
1565 && context->attributes->code != STORE_ATTR_END)
1567 switch(context->attributes->code)
1580 context->attributes->code,
1597 context->attributes->code,
1611 context->attributes->code,
1623 context->attributes->code,
1629 if (context->attributes->code == STORE_ATTR_OR)
1634 && context->attributes->code != STORE_ATTR_OR
1635 && context->attributes->code != STORE_ATTR_END)
1637 if (context->attributes->code == STORE_ATTR_OR)
1666 return context->attributes->code == STORE_ATTR_END;