From: Pascal Knecht Date: Fri, 23 Oct 2020 14:01:03 +0000 (+0200) Subject: tls-test: Load keys of any type X-Git-Tag: 5.9.2rc1~23^2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e579ebe8f6b81786f21251349a1481a85d78ea2;p=thirdparty%2Fstrongswan.git tls-test: Load keys of any type Only RSA keys were possible until now. --- diff --git a/scripts/tls_test.c b/scripts/tls_test.c index f95494683c..321bacb49a 100644 --- a/scripts/tls_test.c +++ b/scripts/tls_test.c @@ -1,4 +1,8 @@ /* + * Copyright (C) 2020 Pascal Knecht + * Copyright (C) 2020 Tobias Brunner + * HSR Hochschule fuer Technik Rapperswil + * * Copyright (C) 2010 Martin Willi * Copyright (C) 2010 revosec AG * @@ -212,8 +216,8 @@ static bool load_key(char *filename) { private_key_t *key; - key = lib->creds->create(lib->creds, CRED_PRIVATE_KEY, KEY_RSA, - BUILD_FROM_FILE, filename, BUILD_END); + key = lib->creds->create(lib->creds, CRED_PRIVATE_KEY, KEY_ANY, + BUILD_FROM_FILE, filename, BUILD_END); if (!key) { DBG1(DBG_TLS, "loading key from '%s' failed", filename);