From 4f43c3962b552d67fe2a25579c92ebfba97e2b21 Mon Sep 17 00:00:00 2001 From: Lars Thorsen Date: Fri, 1 Dec 2017 10:08:24 +0100 Subject: [crypto] Add engine_ctrl_cmd_string() to API --- lib/crypto/doc/src/crypto.xml | 51 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'lib/crypto/doc') diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml index dbc42812a8..464799b320 100644 --- a/lib/crypto/doc/src/crypto.xml +++ b/lib/crypto/doc/src/crypto.xml @@ -1060,6 +1060,57 @@ _FloatValue = rand:uniform(). % [0.0; 1.0[ + + engine_ctrl_cmd_string(Engine, CmdName, CmdArg) -> Result + Sends ctrl commands to an OpenSSL engine + + Engine = term() + CmdName = unicode:chardata() + CmdArg = unicode:chardata() + Result = ok | {error, Reason::term()} + + +

+ Sends ctrl commands to the OpenSSL engine given by Engine. + This function is the same as calling engine_ctrl_cmd_string/4 with + Optional set to false. +

+

+ The function throws a badarg if the parameters are in wrong format. + It may also throw the exception notsup in case there is + no engine support in the underlying OpenSSL implementation. +

+
+
+ + + engine_ctrl_cmd_string(Engine, CmdName, CmdArg, Optional) -> Result + Sends ctrl commands to an OpenSSL engine + + Engine = term() + CmdName = unicode:chardata() + CmdArg = unicode:chardata() + Optional = boolean() + Result = ok | {error, Reason::term()} + + +

+ Sends ctrl commands to the OpenSSL engine given by Engine. + Optional is a boolean argument that can relax the semantics of the function. + If set to true it will only return failure if the ENGINE supported the given + command name but failed while executing it, if the ENGINE doesn't support the command + name it will simply return success without doing anything. In this case we assume + the user is only supplying commands specific to the given ENGINE so we set this to + false. +

+

+ The function throws a badarg if the parameters are in wrong format. + It may also throw the exception notsup in case there is + no engine support in the underlying OpenSSL implementation. +

+
+
+ -- cgit v1.2.3