- (dtucker) [configure.ac ssh-gss.h] bz#2073: additional #includes needed

to use Solaris native GSS libs.  Patch from Pierre Ossman.
This commit is contained in:
Darren Tucker 2013-02-25 11:24:44 +11:00
Родитель a423fefb89
Коммит 03978c61f3
3 изменённых файлов: 26 добавлений и 7 удалений

Просмотреть файл

@ -1,3 +1,7 @@
20130225
- (dtucker) [configure.ac ssh-gss.h] bz#2073: additional #includes needed
to use Solaris native GSS libs. Patch from Pierre Ossman.
20130223 20130223
- (djm) [configure.ac includes.h loginrec.c mux.c sftp.c] Prefer - (djm) [configure.ac includes.h loginrec.c mux.c sftp.c] Prefer
bsd/libutil.h to libutil.h to avoid deprecation warnings on Ubuntu. bsd/libutil.h to libutil.h to avoid deprecation warnings on Ubuntu.

Просмотреть файл

@ -1,4 +1,4 @@
# $Id: configure.ac,v 1.509 2013/02/22 22:12:24 djm Exp $ # $Id: configure.ac,v 1.510 2013/02/25 00:24:44 dtucker Exp $
# #
# Copyright (c) 1999-2004 Damien Miller # Copyright (c) 1999-2004 Damien Miller
# #
@ -15,7 +15,7 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org]) AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org])
AC_REVISION($Revision: 1.509 $) AC_REVISION($Revision: 1.510 $)
AC_CONFIG_SRCDIR([ssh.c]) AC_CONFIG_SRCDIR([ssh.c])
AC_LANG([C]) AC_LANG([C])
@ -3722,6 +3722,20 @@ AC_ARG_WITH([kerberos5],
AC_SEARCH_LIBS([k_hasafs], [kafs], [AC_DEFINE([USE_AFS], [1], AC_SEARCH_LIBS([k_hasafs], [kafs], [AC_DEFINE([USE_AFS], [1],
[Define this if you want to use libkafs' AFS support])]) [Define this if you want to use libkafs' AFS support])])
AC_CHECK_DECLS([GSS_C_NT_HOSTBASED_SERVICE], [], [], [[
#ifdef HAVE_GSSAPI_H
# include <gssapi.h>
#elif defined(HAVE_GSSAPI_GSSAPI_H)
# include <gssapi/gssapi.h>
#endif
#ifdef HAVE_GSSAPI_GENERIC_H
# include <gssapi_generic.h>
#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
# include <gssapi/gssapi_generic.h>
#endif
]])
fi fi
] ]
) )

Просмотреть файл

@ -42,12 +42,13 @@
# include <gssapi/gssapi_generic.h> # include <gssapi/gssapi_generic.h>
# endif # endif
/* MIT Kerberos doesn't seem to define GSS_NT_HOSTBASED_SERVICE */ /* Old MIT Kerberos doesn't seem to define GSS_NT_HOSTBASED_SERVICE */
#ifndef GSS_C_NT_HOSTBASED_SERVICE # if !HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE
#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name # define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
#endif /* GSS_C_NT_... */ # endif /* !HAVE_DECL_GSS_C_NT_... */
#endif /* !HEIMDAL */
# endif /* !HEIMDAL */
#endif /* KRB5 */ #endif /* KRB5 */
/* draft-ietf-secsh-gsskeyex-06 */ /* draft-ietf-secsh-gsskeyex-06 */