Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8aa300ba
Commit
8aa300ba
authored
Aug 16, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Check for gnutls_cipher_init instead of gnutls_hash.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
024a8a0b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
configure
configure
+5
-5
configure.ac
configure.ac
+2
-2
bcrypt_main.c
dlls/bcrypt/bcrypt_main.c
+6
-6
config.h.in
include/config.h.in
+2
-2
No files found.
configure
View file @
8aa300ba
...
...
@@ -11983,16 +11983,16 @@ _ACEOF
fi
ac_wine_check_funcs_save_LIBS
=
"
$LIBS
"
LIBS
=
"
$LIBS
$GNUTLS_LIBS
"
for
ac_func
in
gnutls_
hash
for
ac_func
in
gnutls_
cipher_init
do
:
ac_fn_c_check_func
"
$LINENO
"
"gnutls_
hash"
"ac_cv_func_gnutls_hash
"
if
test
"x
$ac_cv_func_gnutls_
hash
"
=
xyes
;
then
:
ac_fn_c_check_func
"
$LINENO
"
"gnutls_
cipher_init"
"ac_cv_func_gnutls_cipher_init
"
if
test
"x
$ac_cv_func_gnutls_
cipher_init
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_GNUTLS_
HASH
1
#define HAVE_GNUTLS_
CIPHER_INIT
1
_ACEOF
else
as_fn_append wine_notices
"|libgnutls
${
notice_platform
}
development files too old, bcrypt
hashes
won't be supported."
as_fn_append wine_notices
"|libgnutls
${
notice_platform
}
development files too old, bcrypt
encryption
won't be supported."
fi
done
...
...
configure.ac
View file @
8aa300ba
...
...
@@ -1304,8 +1304,8 @@ then
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>]], [[static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;]])],
[WINE_CHECK_SONAME(gnutls,gnutls_global_init,,[GNUTLS_CFLAGS=""],[$GNUTLS_LIBS],[[libgnutls\\(-deb0\\)\\{0,1\\}]])
WINE_CHECK_LIB_FUNCS(gnutls_
hash
,[$GNUTLS_LIBS],,
[WINE_NOTICE([libgnutls ${notice_platform}development files too old, bcrypt
hashes
won't be supported.])])])],
WINE_CHECK_LIB_FUNCS(gnutls_
cipher_init
,[$GNUTLS_LIBS],,
[WINE_NOTICE([libgnutls ${notice_platform}development files too old, bcrypt
encryption
won't be supported.])])])],
[GNUTLS_CFLAGS=""])])
fi
WINE_WARNING_WITH(gnutls,[test "x$ac_cv_lib_soname_gnutls" = "x"],
...
...
dlls/bcrypt/bcrypt_main.c
View file @
8aa300ba
...
...
@@ -46,7 +46,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(bcrypt);
static
HINSTANCE
instance
;
#if defined(HAVE_GNUTLS_
HASH
) && !defined(HAVE_COMMONCRYPTO_COMMONDIGEST_H)
#if defined(HAVE_GNUTLS_
CIPHER_INIT
) && !defined(HAVE_COMMONCRYPTO_COMMONDIGEST_H)
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
static
void
*
libgnutls_handle
;
...
...
@@ -73,7 +73,7 @@ static BOOL gnutls_initialize(void)
if
(
!
(
libgnutls_handle
=
wine_dlopen
(
SONAME_LIBGNUTLS
,
RTLD_NOW
,
NULL
,
0
)))
{
ERR_
(
winediag
)(
"failed to load libgnutls, no support for
crypto hashes
\n
"
);
ERR_
(
winediag
)(
"failed to load libgnutls, no support for
encryption
\n
"
);
return
FALSE
;
}
...
...
@@ -121,7 +121,7 @@ static void gnutls_uninitialize(void)
wine_dlclose
(
libgnutls_handle
,
NULL
,
0
);
libgnutls_handle
=
NULL
;
}
#endif
/* HAVE_GNUTLS_
HASH
&& !HAVE_COMMONCRYPTO_COMMONDIGEST_H */
#endif
/* HAVE_GNUTLS_
CIPHER_INIT
&& !HAVE_COMMONCRYPTO_COMMONDIGEST_H */
NTSTATUS
WINAPI
BCryptEnumAlgorithms
(
ULONG
dwAlgOperations
,
ULONG
*
pAlgCount
,
BCRYPT_ALGORITHM_IDENTIFIER
**
ppAlgList
,
ULONG
dwFlags
)
...
...
@@ -685,7 +685,7 @@ NTSTATUS WINAPI BCryptHash( BCRYPT_ALG_HANDLE algorithm, UCHAR *secret, ULONG se
return
BCryptDestroyHash
(
handle
);
}
#if defined(HAVE_GNUTLS_
HASH
) && !defined(HAVE_COMMONCRYPTO_COMMONDIGEST_H)
#if defined(HAVE_GNUTLS_
CIPHER_INIT
) && !defined(HAVE_COMMONCRYPTO_COMMONDIGEST_H)
struct
key
{
struct
object
hdr
;
...
...
@@ -1020,14 +1020,14 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
case
DLL_PROCESS_ATTACH
:
instance
=
hinst
;
DisableThreadLibraryCalls
(
hinst
);
#if defined(HAVE_GNUTLS_
HASH
) && !defined(HAVE_COMMONCRYPTO_COMMONDIGEST_H)
#if defined(HAVE_GNUTLS_
CIPHER_INIT
) && !defined(HAVE_COMMONCRYPTO_COMMONDIGEST_H)
gnutls_initialize
();
#endif
break
;
case
DLL_PROCESS_DETACH
:
if
(
reserved
)
break
;
#if defined(HAVE_GNUTLS_
HASH
) && !defined(HAVE_COMMONCRYPTO_COMMONDIGEST_H)
#if defined(HAVE_GNUTLS_
CIPHER_INIT
) && !defined(HAVE_COMMONCRYPTO_COMMONDIGEST_H)
gnutls_uninitialize
();
#endif
break
;
...
...
include/config.h.in
View file @
8aa300ba
...
...
@@ -267,8 +267,8 @@
/* Define to 1 if you have the `getuid' function. */
#undef HAVE_GETUID
/* Define to 1 if you have the `gnutls_
hash
' function. */
#undef HAVE_GNUTLS_
HASH
/* Define to 1 if you have the `gnutls_
cipher_init
' function. */
#undef HAVE_GNUTLS_
CIPHER_INIT
/* Define if we have the libgphoto2 development environment */
#undef HAVE_GPHOTO2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment