export hx509_find_private_alg
This commit is contained in:
@@ -1506,8 +1506,8 @@ static struct hx509_private_key_ops *private_algs[] = {
|
|||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static hx509_private_key_ops *
|
hx509_private_key_ops *
|
||||||
find_private_alg(const heim_oid *oid)
|
hx509_find_private_alg(const heim_oid *oid)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; private_algs[i]; i++) {
|
for (i = 0; private_algs[i]; i++) {
|
||||||
@@ -1770,7 +1770,7 @@ _hx509_parse_private_key(hx509_context context,
|
|||||||
|
|
||||||
*private_key = NULL;
|
*private_key = NULL;
|
||||||
|
|
||||||
ops = find_private_alg(&keyai->algorithm);
|
ops = hx509_find_private_alg(&keyai->algorithm);
|
||||||
if (ops == NULL) {
|
if (ops == NULL) {
|
||||||
hx509_clear_error_string(context);
|
hx509_clear_error_string(context);
|
||||||
return HX509_SIG_ALG_NO_SUPPORTED;
|
return HX509_SIG_ALG_NO_SUPPORTED;
|
||||||
@@ -1865,7 +1865,7 @@ _hx509_generate_private_key(hx509_context context,
|
|||||||
|
|
||||||
*private_key = NULL;
|
*private_key = NULL;
|
||||||
|
|
||||||
ops = find_private_alg(ctx->key_oid);
|
ops = hx509_find_private_alg(ctx->key_oid);
|
||||||
if (ops == NULL) {
|
if (ops == NULL) {
|
||||||
hx509_clear_error_string(context);
|
hx509_clear_error_string(context);
|
||||||
return HX509_SIG_ALG_NO_SUPPORTED;
|
return HX509_SIG_ALG_NO_SUPPORTED;
|
||||||
|
@@ -146,6 +146,7 @@ HEIMDAL_X509_1.2 {
|
|||||||
hx509_err;
|
hx509_err;
|
||||||
hx509_free_error_string;
|
hx509_free_error_string;
|
||||||
hx509_free_octet_string_list;
|
hx509_free_octet_string_list;
|
||||||
|
hx509_find_private_alg;
|
||||||
hx509_general_name_unparse;
|
hx509_general_name_unparse;
|
||||||
hx509_get_error_string;
|
hx509_get_error_string;
|
||||||
hx509_get_one_cert;
|
hx509_get_one_cert;
|
||||||
|
Reference in New Issue
Block a user