Fix typo. Add EVP_PKEY_CTX control function for later use by command line
utilities.
diff --git a/apps/apps.c b/apps/apps.c
index c2afdd1..1b7ca69 100644
--- a/apps/apps.c
+++ b/apps/apps.c
@@ -2304,6 +2304,24 @@
return ret;
}
+int pkey_ctrl_string(BIO *err, EVP_PKEY_CTX *ctx, char *value)
+ {
+ char *stmp, *vtmp = NULL;
+ stmp = BUF_strdup(value);
+ int rv;
+ if (!stmp)
+ return -1;
+ vtmp = strchr(stmp, ':');
+ if (vtmp)
+ {
+ *vtmp = 0;
+ vtmp++;
+ }
+ rv = EVP_PKEY_CTX_ctrl_str(ctx, stmp, vtmp);
+ OPENSSL_free(stmp);
+ return rv;
+ }
+
static void nodes_print(BIO *out, const char *name,
STACK_OF(X509_POLICY_NODE) *nodes)
{