Cleaner disposal of ephemeral engine ids and names
authorViktor Dukhovni <openssl-users@dukhovni.org>
Sun, 9 Dec 2018 23:37:56 +0000 (18:37 -0500)
committerViktor Dukhovni <openssl-users@dukhovni.org>
Mon, 10 Dec 2018 03:02:48 +0000 (22:02 -0500)
commit1057c2c39f5df45c36c0fc4d78dc9d3b91f78bc6
tree0e20cb671cd05d2574c9134721faf47efbb9bf3a
parent9b340281873643d2b8a33047dc8bfa607f7e0c3c
Cleaner disposal of ephemeral engine ids and names

Engine names and ids are typically static strings.  If an application
actually dynamically allocated these, the application owns the
storage, and should dispose of it via the original handle, rather
than the "const char *" returned by the engine.

In any case, this resolves the test code issue without resort to
"unconst" macros/casts.

Reviewed-by: Richard Levitte <levitte@openssl.org>
test/enginetest.c
test/hmactest.c