version 1.48, 2018/08/16 10:26:34 |
version 1.49, 2018/08/16 16:56:51 |
|
|
{ |
{ |
X509_POLICY_TREE *tree; |
X509_POLICY_TREE *tree; |
int explicit_policy; |
int explicit_policy; |
|
int free_out = 0; |
|
|
if (out == NULL) |
if (out == NULL) { |
out = BIO_new_fp(stderr, BIO_NOCLOSE); |
out = BIO_new_fp(stderr, BIO_NOCLOSE); |
|
free_out = 1; |
|
} |
tree = X509_STORE_CTX_get0_policy_tree(ctx); |
tree = X509_STORE_CTX_get0_policy_tree(ctx); |
explicit_policy = X509_STORE_CTX_get_explicit_policy(ctx); |
explicit_policy = X509_STORE_CTX_get_explicit_policy(ctx); |
|
|
|
|
nodes_print(out, "Authority", X509_policy_tree_get0_policies(tree)); |
nodes_print(out, "Authority", X509_policy_tree_get0_policies(tree)); |
nodes_print(out, "User", X509_policy_tree_get0_user_policies(tree)); |
nodes_print(out, "User", X509_policy_tree_get0_user_policies(tree)); |
|
|
BIO_free(out); |
if (free_out) |
|
BIO_free(out); |
} |
} |
|
|
/* |
/* |