python-winkerberos: Remove duplicate declaration in patch file.

This commit is contained in:
Biswapriyo Nath
2021-04-22 00:22:45 +05:30
parent 729d4a2ae4
commit 6457d4e055
2 changed files with 2 additions and 18 deletions

View File

@@ -7,7 +7,7 @@ provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
pkgver=0.7.0
pkgrel=1
pkgrel=2
pkgdesc="High level interface to SSPI for Kerberos client auth (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64')
@@ -22,7 +22,7 @@ _dtoken="85/b2/c5a66595bb477f1939596d80fa308e357c28abe22d3d6ce6cc2208c324ee"
source=("https://files.pythonhosted.org/packages/${_dtoken}/winkerberos-${pkgver}.zip"
mingw-fixes.patch)
sha256sums=('e304c28de838a48206edfe58b8deb5209a3fd8c6a755bd521c1ee6e656b06e27'
'2a3fe6e90b8ab3ead000e831878e089880d4402a7df7bca8e8615666b78b090d')
'97e9cd1bd9dcf5bf1f0db52a42c0082e284fd46cda86677b80c0ee62c3acd2c7')
# Helper macros to help make tasks easier #
apply_patch_with_msg() {

View File

@@ -30,19 +30,3 @@
sources = [
"src/winkerberos.c",
"src/kerberos_sspi.c"
--- winkerberos-0.7.0/src/kerberos_sspi.h.orig 2018-12-04 04:37:07.485511200 -0500
+++ winkerberos-0.7.0/src/kerberos_sspi.h 2018-12-04 04:38:53.197331100 -0500
@@ -39,6 +39,13 @@ typedef struct {
ULONG qop;
} sspi_client_state;
+#ifdef __MINGW32__
+typedef struct _SecPkgContext_Bindings {
+ unsigned long BindingsLength;
+ SEC_CHANNEL_BINDINGS *Bindings;
+} SecPkgContext_Bindings, *PSecPkgContext_Bindings;
+#endif
+
VOID set_gsserror(DWORD errCode, const SEC_CHAR* msg);
VOID destroy_sspi_client_state(sspi_client_state* state);
INT auth_sspi_client_init(WCHAR* service,