]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add generate_ephemeral_key that allows a random ephermal key
authorArne Schwabe <arne@openvpn.net>
Thu, 13 Jun 2019 13:48:30 +0000 (15:48 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 5 Jul 2019 10:36:01 +0000 (12:36 +0200)
commitfb4e8abca908d90faa98f20125e49a2590bccaa3
tree455261cca110ff0f0f767d177f5233cd012d56e4
parent0d80b562e48a243c36dba9f1f66c3da6e3b3eb98
Add generate_ephemeral_key that allows a random ephermal key

This is useful for features that can use enither a persistent
or an ephemeral key.

Patch V2: Move the functionality of generating a random key into a
          separate function that acts as wrapper for pem_read_key_file
Patch V4: Move wrapper functionality to caller and leave only generate
          epehermal key functionality in the new function
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <20190613134834.5709-2-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18527.html

Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/crypto.c
src/openvpn/crypto.h