summaryrefslogtreecommitdiffhomepage
path: root/svr-authpubkey.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2019-05-15 21:59:45 +0800
committerMatt Johnston <matt@ucc.asn.au>2019-05-15 21:59:45 +0800
commitfa116e983b4931010e1082dd5c8bf38bbc77718c (patch)
tree6e4e2d4e1fb756895cf5ea17bfa0f0493ffd49f3 /svr-authpubkey.c
parent8c6aaf8d361e95ba3d9b371b86abaae1fd0e436f (diff)
Rename EPKA -> Plugin
Diffstat (limited to 'svr-authpubkey.c')
-rw-r--r--svr-authpubkey.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/svr-authpubkey.c b/svr-authpubkey.c
index 9d70bfb..5c234b9 100644
--- a/svr-authpubkey.c
+++ b/svr-authpubkey.c
@@ -111,12 +111,12 @@ void svr_auth_pubkey(int valid_user) {
send_msg_userauth_failure(0, 0);
goto out;
}
-#if DROPBEAR_EPKA
- if (svr_ses.epka_instance != NULL) {
+#if DROPBEAR_PLUGIN
+ if (svr_ses.plugin_instance != NULL) {
char *options_buf;
- if (svr_ses.epka_instance->checkpubkey(
- svr_ses.epka_instance,
- &ses.epka_session,
+ if (svr_ses.plugin_instance->checkpubkey(
+ svr_ses.plugin_instance,
+ &ses.plugin_session,
algo,
algolen,
keyblob,
@@ -126,7 +126,7 @@ void svr_auth_pubkey(int valid_user) {
auth_failure = 0;
/* Options provided? */
- options_buf = ses.epka_session->get_options(ses.epka_session);
+ options_buf = ses.plugin_session->get_options(ses.plugin_session);
if (options_buf) {
struct buf temp_buf = {
.data = (unsigned char *)options_buf,
@@ -193,10 +193,10 @@ void svr_auth_pubkey(int valid_user) {
"Pubkey auth succeeded for '%s' with key %s from %s",
ses.authstate.pw_name, fp, svr_ses.addrstring);
send_msg_userauth_success();
-#if DROPBEAR_EPKA
- if ((ses.epka_session != NULL) && (svr_ses.epka_instance->auth_success != NULL)) {
+#if DROPBEAR_PLUGIN
+ if ((ses.plugin_session != NULL) && (svr_ses.plugin_instance->auth_success != NULL)) {
/* Was authenticated through the external plugin. tell plugin that signature verification was ok */
- svr_ses.epka_instance->auth_success(ses.epka_session);
+ svr_ses.plugin_instance->auth_success(ses.plugin_session);
}
#endif