mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
authenticator: Add optional method to set PPK
This commit is contained in:
parent
600b106852
commit
7150fa7065
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user