summaryrefslogtreecommitdiffhomepage
path: root/sysoptions.h
diff options
context:
space:
mode:
authorfabriziobertocci <fabriziobertocci@gmail.com>2019-05-15 09:43:57 -0400
committerMatt Johnston <matt@ucc.asn.au>2019-05-15 21:43:57 +0800
commit8c6aaf8d361e95ba3d9b371b86abaae1fd0e436f (patch)
tree42854eeaf56ed1955b6a1ec8c8e1e2df23524db8 /sysoptions.h
parentcae6e6af1006d6afa33e030e21aeabafd8721be7 (diff)
External Public-Key Authentication API (#72)
* Implemented dynamic loading of an external plug-in shared library to delegate public key authentication * Moved conditional compilation of the plugin infrastructure into the configure.ac script to be able to add -ldl to dropbear build only when the flag is enabled * Added tags file to the ignore list * Updated API to have the constructor to return function pointers in the pliugin instance. Added support for passing user name to the checkpubkey function. Added options to the session returned by the plugin and have dropbear to parse and process them * Added -rdynamic to the linker flags when EPKA is enabled * Changed the API to pass a previously created session to the checkPubKey function (created during preauth) * Added documentation to the API * Added parameter addrstring to plugin creation function * Modified the API to retrieve the auth options. Instead of having them as field of the EPKASession struct, they are stored internally (plugin-dependent) in the plugin/session and retrieved through a pointer to a function (in the session) * Changed option string to be a simple char * instead of unsigned char *
Diffstat (limited to 'sysoptions.h')
-rw-r--r--sysoptions.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysoptions.h b/sysoptions.h
index efb27d8..58604f0 100644
--- a/sysoptions.h
+++ b/sysoptions.h
@@ -243,6 +243,9 @@ If you test it please contact the Dropbear author */
#error "At least one server authentication type must be enabled. DROPBEAR_SVR_PUBKEY_AUTH and DROPBEAR_SVR_PASSWORD_AUTH are recommended."
#endif
+#if (DROPBEAR_EPKA && !DROPBEAR_SVR_PUBKEY_AUTH)
+ #error "You must define DROPBEAR_SVR_PUBKEY_AUTH in order to use External Public Key Authentication (EPKA)"
+#endif
#if !(DROPBEAR_AES128 || DROPBEAR_3DES || DROPBEAR_AES256 || DROPBEAR_BLOWFISH \
|| DROPBEAR_TWOFISH256 || DROPBEAR_TWOFISH128)