[pkg-wine-party] [wine] 72/259: include: Add initial ncrypt.h.

Michael Gilbert mgilbert at moszumanska.debian.org
Sat Jul 23 05:42:50 UTC 2016


This is an automated email from the git hooks/post-receive script.

mgilbert pushed a commit to branch master
in repository wine.

commit 6cd6e96259142e6fcdd6772383d3890288e1c0fb
Author: Austin English <austinenglish at gmail.com>
Date:   Wed Jul 13 18:17:57 2016 +0200

    include: Add initial ncrypt.h.
    
    Signed-off-by: Austin English <austinenglish at gmail.com>
    Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
    Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
    Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
 include/Makefile.in |  1 +
 include/ncrypt.h    | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/include/Makefile.in b/include/Makefile.in
index 18c3383..9c20f28a 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -504,6 +504,7 @@ HEADER_SRCS = \
 	msxml6did.h \
 	msxmldid.h \
 	nb30.h \
+	ncrypt.h \
 	ndrtypes.h \
 	netioapi.h \
 	nldef.h \
diff --git a/include/ncrypt.h b/include/ncrypt.h
new file mode 100644
index 0000000..2bfdae0
--- /dev/null
+++ b/include/ncrypt.h
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2016 Austin English
+ *
+ * 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 St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __NCRYPT_H__
+#define __NCRYPT_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef WINAPI
+#define WINAPI __stdcall
+#endif
+
+#ifndef __SECSTATUS_DEFINED__
+typedef LONG SECURITY_STATUS;
+#define __SECSTATUS_DEFINED__
+#endif
+
+typedef ULONG_PTR NCRYPT_HANDLE;
+typedef ULONG_PTR NCRYPT_PROV_HANDLE;
+typedef ULONG_PTR NCRYPT_KEY_HANDLE;
+typedef ULONG_PTR NCRYPT_HASH_HANDLE;
+typedef ULONG_PTR NCRYPT_SECRET_HANDLE;
+
+SECURITY_STATUS WINAPI NCryptCreatePersistedKey(NCRYPT_PROV_HANDLE, NCRYPT_KEY_HANDLE *, const WCHAR *, const WCHAR *, DWORD, DWORD);
+SECURITY_STATUS WINAPI NCryptDecrypt(NCRYPT_KEY_HANDLE, BYTE *, DWORD, void *, BYTE *, DWORD, DWORD *, DWORD);
+SECURITY_STATUS WINAPI NCryptEncrypt(NCRYPT_KEY_HANDLE, BYTE *, DWORD, void *, BYTE *, DWORD, DWORD *, DWORD);
+SECURITY_STATUS WINAPI NCryptFinalizeKey(NCRYPT_KEY_HANDLE, DWORD);
+SECURITY_STATUS WINAPI NCryptFreeObject(NCRYPT_HANDLE);
+SECURITY_STATUS WINAPI NCryptOpenKey(NCRYPT_PROV_HANDLE, NCRYPT_KEY_HANDLE *, const WCHAR *, DWORD, DWORD);
+SECURITY_STATUS WINAPI NCryptOpenStorageProvider(NCRYPT_PROV_HANDLE *, const WCHAR *, DWORD);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __NCRYPT_H__ */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wine/wine.git



More information about the pkg-wine-party mailing list