Home | History | Annotate | Download | only in store

Lines Matching refs:attrs

1285 static void STORE_ATTR_INFO_attr_free(STORE_ATTR_INFO *attrs,
1288 if (ATTR_IS_SET(attrs,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);
1316 int STORE_ATTR_INFO_free(STORE_ATTR_INFO *attrs)
1318 if (attrs)
1322 STORE_ATTR_INFO_attr_free(attrs, i);
1323 OPENSSL_free(attrs);
1327 char *STORE_ATTR_INFO_get0_cstr(STORE_ATTR_INFO *attrs
1329 if (!attrs)
1335 if (ATTR_IS_SET(attrs,code))
1336 return attrs->values[code].cstring;
1341 unsigned char *STORE_ATTR_INFO_get0_sha1str(STORE_ATTR_INFO *attrs,
1344 if (!attrs)
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)
1358 if (!attrs)
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)
1372 if (!attrs)
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,
1387 if (!attrs)
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,
1407 if (!attrs)
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,
1429 if (!attrs)
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,
1449 if (!attrs)
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,
1469 if (!attrs)
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,
1486 if (!attrs)
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,
1503 if (!attrs)
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,
1520 if (!attrs)
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);
1561 STORE_ATTR_INFO *attrs = NULL;
1572 if (!attrs) attrs = STORE_ATTR_INFO_new();
1573 if (attrs == NULL)
1579 STORE_ATTR_INFO_set_cstr(attrs,
1589 if (!attrs) attrs = STORE_ATTR_INFO_new();
1590 if (attrs == NULL)
1596 STORE_ATTR_INFO_set_sha1str(attrs,
1603 if (!attrs) attrs = STORE_ATTR_INFO_new();
1604 if (attrs == NULL)
1610 STORE_ATTR_INFO_modify_dn(attrs,
1615 if (!attrs) attrs = STORE_ATTR_INFO_new();
1616 if (attrs == NULL)
1622 STORE_ATTR_INFO_modify_number(attrs,
1631 return attrs;