verify parameter enumeration functions
This commit is contained in:
parent
b1efb7161f
commit
9b3d75706e
@ -527,8 +527,11 @@ int X509_VERIFY_PARAM_add0_policy(X509_VERIFY_PARAM *param,
|
|||||||
int X509_VERIFY_PARAM_set1_policies(X509_VERIFY_PARAM *param,
|
int X509_VERIFY_PARAM_set1_policies(X509_VERIFY_PARAM *param,
|
||||||
STACK_OF(ASN1_OBJECT) *policies);
|
STACK_OF(ASN1_OBJECT) *policies);
|
||||||
int X509_VERIFY_PARAM_get_depth(const X509_VERIFY_PARAM *param);
|
int X509_VERIFY_PARAM_get_depth(const X509_VERIFY_PARAM *param);
|
||||||
|
const char *X509_VERIFY_PARAM_get0_name(const X509_VERIFY_PARAM *param);
|
||||||
|
|
||||||
int X509_VERIFY_PARAM_add0_table(X509_VERIFY_PARAM *param);
|
int X509_VERIFY_PARAM_add0_table(X509_VERIFY_PARAM *param);
|
||||||
|
int X509_VERIFY_PARAM_get_count(void);
|
||||||
|
const X509_VERIFY_PARAM *X509_VERIFY_PARAM_get0(int id);
|
||||||
const X509_VERIFY_PARAM *X509_VERIFY_PARAM_lookup(const char *name);
|
const X509_VERIFY_PARAM *X509_VERIFY_PARAM_lookup(const char *name);
|
||||||
void X509_VERIFY_PARAM_table_cleanup(void);
|
void X509_VERIFY_PARAM_table_cleanup(void);
|
||||||
|
|
||||||
|
@ -311,6 +311,11 @@ int X509_VERIFY_PARAM_get_depth(const X509_VERIFY_PARAM *param)
|
|||||||
return param->depth;
|
return param->depth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *X509_VERIFY_PARAM_get0_name(const X509_VERIFY_PARAM *param)
|
||||||
|
{
|
||||||
|
return param->name;
|
||||||
|
}
|
||||||
|
|
||||||
/* Default verify parameters: these are used for various
|
/* Default verify parameters: these are used for various
|
||||||
* applications and can be overridden by the user specified table.
|
* applications and can be overridden by the user specified table.
|
||||||
* NB: the 'name' field *must* be in alphabetical order because it
|
* NB: the 'name' field *must* be in alphabetical order because it
|
||||||
@ -413,6 +418,22 @@ int X509_VERIFY_PARAM_add0_table(X509_VERIFY_PARAM *param)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int X509_VERIFY_PARAM_get_count(void)
|
||||||
|
{
|
||||||
|
int num = sizeof(default_table)/sizeof(X509_VERIFY_PARAM);
|
||||||
|
if (param_table)
|
||||||
|
num += sk_X509_VERIFY_PARAM_num(param_table);
|
||||||
|
return num;
|
||||||
|
}
|
||||||
|
|
||||||
|
const X509_VERIFY_PARAM *X509_VERIFY_PARAM_get0(int id)
|
||||||
|
{
|
||||||
|
int num = sizeof(default_table)/sizeof(X509_VERIFY_PARAM);
|
||||||
|
if (id < num)
|
||||||
|
return default_table + id;
|
||||||
|
return sk_X509_VERIFY_PARAM_value(param_table, id - num);
|
||||||
|
}
|
||||||
|
|
||||||
const X509_VERIFY_PARAM *X509_VERIFY_PARAM_lookup(const char *name)
|
const X509_VERIFY_PARAM *X509_VERIFY_PARAM_lookup(const char *name)
|
||||||
{
|
{
|
||||||
int idx;
|
int idx;
|
||||||
|
Loading…
Reference in New Issue
Block a user