From: Tobias Brunner Date: Thu, 26 Jul 2018 13:32:10 +0000 (+0200) Subject: authenticator: Add optional method to set PPK X-Git-Tag: 5.7.0rc1~19^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7150fa70654948d9b309902a69c84b1f82d9efe9;p=thirdparty%2Fstrongswan.git authenticator: Add optional method to set PPK --- diff --git a/src/libcharon/sa/authenticator.h b/src/libcharon/sa/authenticator.h index 42d9ce32ee..58a8ca04fa 100644 --- a/src/libcharon/sa/authenticator.h +++ b/src/libcharon/sa/authenticator.h @@ -1,6 +1,6 @@ /* + * Copyright (C) 2008-2018 Tobias Brunner * Copyright (C) 2005-2009 Martin Willi - * Copyright (C) 2008 Tobias Brunner * Copyright (C) 2005 Jan Hutter * HSR Hochschule fuer Technik Rapperswil * @@ -156,6 +156,17 @@ struct authenticator_t { */ status_t (*build)(authenticator_t *this, message_t *message); + /** + * Optional method to set a Postquantum Preshared Key (PPK) to be used + * during authentication. + * + * Has to be called before the final call to process()/build(). + * + * @param ppk PPK to use + * @param no_ppk_auth whether to add a NO_PPK_AUTH notify in build() + */ + void (*use_ppk)(authenticator_t *this, chunk_t ppk, bool no_ppk_auth); + /** * Check if the authenticator is capable of mutual authentication. *