diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2013-02-20 23:20:30 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-07-13 14:21:36 +0200 |
commit | 7fef6e817eab44d849846853e8efb0b547c4ad1f (patch) | |
tree | 0f9f66195008ea6c8e11c7d8da4cc2dc3f5de11f /include | |
parent | 1246ad812c1aedb73bd75db86732fa60eb8a6aec (diff) | |
download | libssh-7fef6e817eab44d849846853e8efb0b547c4ad1f.tar.gz libssh-7fef6e817eab44d849846853e8efb0b547c4ad1f.tar.xz libssh-7fef6e817eab44d849846853e8efb0b547c4ad1f.zip |
auth: implement gssapi-with-mic server side
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/gssapi.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/libssh/gssapi.h b/include/libssh/gssapi.h new file mode 100644 index 0000000..688590b --- /dev/null +++ b/include/libssh/gssapi.h @@ -0,0 +1,38 @@ +/* + * This file is part of the SSH Library + * + * Copyright (c) 2013 by Aris Adamantiadis + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef GSSAPI_H_ +#define GSSAPI_H_ + +#include "config.h" +#include "session.h" + +/* all OID begin with the tag identifier + length */ +#define SSH_OID_TAG 06 + +typedef struct ssh_gssapi_struct *ssh_gssapi; + +#ifdef WITH_SERVER +int ssh_gssapi_handle_userauth(ssh_session session, const char *user, uint32_t n_oid, ssh_string *oids); +SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_token); +SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_mic); +#endif /* WITH_SERVER */ + +#endif /* GSSAPI_H */ |