[1/2] kerberos: Add a stub for Kerberos5 Authentication Package.

Hans Leidekker hans at codeweavers.com
Tue Oct 17 06:07:57 CDT 2017


Hi Dmitry,

Thanks. Alexandre pointed out that we do not need to load libkrb5
dynamically because libgssapi_krb5 depends on libkrb5. So if libkrb5
is missing the SSP wouldn't be usable anyway.

> diff --git a/configure.ac b/configure.ac
> index 58737162a8..82faa4b943 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -422,6 +422,7 @@ AC_CHECK_HEADERS(\
>  	ieeefp.h \
>  	inet/mib2.h \
>  	io.h \
> +	krb5/krb5.h \
>  	kstat.h \
>  	libproc.h \
>  	link.h \
> @@ -1625,6 +1626,14 @@ fi
>  WINE_NOTICE_WITH(gsm,[test "x$ac_cv_lib_soname_gsm" = "x"],
>                   [libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.])
>  
> +dnl **** Check for krb5 ****
> +if test "$ac_cv_header_krb5_krb5_h" = "yes"
> +then
> +    WINE_CHECK_SONAME(krb5,krb5_init_context)
> +fi
> +WINE_NOTICE_WITH(krb5,[test "x$ac_cv_lib_soname_krb5" = "x"],
> +                 [libkrb5 ${notice_platform}development files not found, krb5 won't be supported.])
> +

There is pkgconfig support for krb5. I guess we want to use it.

You need to guard the code that uses krb5 functions with an ifdef or it
will fail to compile if the headers are missing.




More information about the wine-devel mailing list