Lines Matching refs:code
13 * 1. Redistributions of source code must retain the above copyright
1215 STORE_ATTR_TYPES code)
1217 if (ATTR_IS_SET(attrs, code)) {
1218 switch (code) {
1222 STORE_ATTR_INFO_modify_cstr(attrs, code, NULL, 0);
1229 STORE_ATTR_INFO_modify_sha1str(attrs, code, NULL, 0);
1233 STORE_ATTR_INFO_modify_dn(attrs, code, NULL);
1236 STORE_ATTR_INFO_modify_number(attrs, code, NULL);
1255 char *STORE_ATTR_INFO_get0_cstr(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code)
1262 if (ATTR_IS_SET(attrs, code))
1263 return attrs->values[code].cstring;
1269 STORE_ATTR_TYPES code)
1276 if (ATTR_IS_SET(attrs, code))
1277 return attrs->values[code].sha1string;
1283 STORE_ATTR_TYPES code)
1290 if (ATTR_IS_SET(attrs, code))
1291 return attrs->values[code].dn;
1297 STORE_ATTR_TYPES code)
1304 if (ATTR_IS_SET(attrs, code))
1305 return attrs->values[code].number;
1310 int STORE_ATTR_INFO_set_cstr(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code,
1318 if (!ATTR_IS_SET(attrs, code)) {
1319 if ((attrs->values[code].cstring = BUF_strndup(cstr, cstr_size)))
1328 int STORE_ATTR_INFO_set_sha1str(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code,
1336 if (!ATTR_IS_SET(attrs, code)) {
1337 if ((attrs->values[code].sha1string =
1348 int STORE_ATTR_INFO_set_dn(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code,
1355 if (!ATTR_IS_SET(attrs, code)) {
1356 if ((attrs->values[code].dn = X509_NAME_dup(dn)))
1365 int STORE_ATTR_INFO_set_number(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code,
1373 if (!ATTR_IS_SET(attrs, code)) {
1374 if ((attrs->values[code].number = BN_dup(number)))
1383 int STORE_ATTR_INFO_modify_cstr(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code,
1391 if (ATTR_IS_SET(attrs, code)) {
1392 OPENSSL_free(attrs->values[code].cstring);
1393 attrs->values[code].cstring = NULL;
1394 CLEAR_ATTRBIT(attrs, code);
1396 return STORE_ATTR_INFO_set_cstr(attrs, code, cstr, cstr_size);
1400 STORE_ATTR_TYPES code,
1409 if (ATTR_IS_SET(attrs, code)) {
1410 OPENSSL_free(attrs->values[code].sha1string);
1411 attrs->values[code].sha1string = NULL;
1412 CLEAR_ATTRBIT(attrs, code);
1414 return STORE_ATTR_INFO_set_sha1str(attrs, code, sha1str, sha1str_size);
1417 int STORE_ATTR_INFO_modify_dn(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code,
1425 if (ATTR_IS_SET(attrs, code)) {
1426 OPENSSL_free(attrs->values[code].dn);
1427 attrs->values[code].dn = NULL;
1428 CLEAR_ATTRBIT(attrs, code);
1430 return STORE_ATTR_INFO_set_dn(attrs, code, dn);
1434 STORE_ATTR_TYPES code, BIGNUM *number)
1441 if (ATTR_IS_SET(attrs, code)) {
1442 OPENSSL_free(attrs->values[code].number);
1443 attrs->values[code].number = NULL;
1444 CLEAR_ATTRBIT(attrs, code);
1446 return STORE_ATTR_INFO_set_number(attrs, code, number);
1475 && context->attributes->code != STORE_ATTR_OR
1476 && context->attributes->code != STORE_ATTR_END) {
1477 switch (context->attributes->code) {
1489 context->attributes->code,
1506 context->attributes->code,
1520 context->attributes->code,
1532 context->attributes->code,
1538 if (context->attributes->code == STORE_ATTR_OR)
1543 && context->attributes->code != STORE_ATTR_OR
1544 && context->attributes->code != STORE_ATTR_END)
1546 if (context->attributes->code == STORE_ATTR_OR)
1574 return context->attributes->code == STORE_ATTR_END;