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
53087dbe
Commit
53087dbe
authored
Aug 07, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Aug 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Introduce cryptasn debug channel to quiet down crypt traces.
parent
05d2ab17
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
decode.c
dlls/crypt32/decode.c
+5
-4
encode.c
dlls/crypt32/encode.c
+9
-8
No files found.
dlls/crypt32/decode.c
View file @
53087dbe
...
...
@@ -53,7 +53,8 @@
#define ASN_FLAGS_MASK 0xe0
#define ASN_TYPE_MASK 0x1f
WINE_DEFAULT_DEBUG_CHANNEL
(
crypt
);
WINE_DEFAULT_DEBUG_CHANNEL
(
cryptasn
);
WINE_DECLARE_DEBUG_CHANNEL
(
crypt
);
struct
GenericArray
{
...
...
@@ -132,7 +133,7 @@ BOOL WINAPI CryptDecodeObject(DWORD dwCertEncodingType, LPCSTR lpszStructType,
CryptDecodeObjectFunc
pCryptDecodeObject
;
HCRYPTOIDFUNCADDR
hFunc
;
TRACE
(
"(0x%08x, %s, %p, %d, 0x%08x, %p, %p)
\n
"
,
dwCertEncodingType
,
TRACE
_
(
crypt
)
(
"(0x%08x, %s, %p, %d, 0x%08x, %p, %p)
\n
"
,
dwCertEncodingType
,
debugstr_a
(
lpszStructType
),
pbEncoded
,
cbEncoded
,
dwFlags
,
pvStructInfo
,
pcbStructInfo
);
...
...
@@ -3988,7 +3989,7 @@ BOOL WINAPI CryptDecodeObjectEx(DWORD dwCertEncodingType, LPCSTR lpszStructType,
CryptDecodeObjectExFunc
decodeFunc
=
NULL
;
HCRYPTOIDFUNCADDR
hFunc
=
NULL
;
TRACE
(
"(0x%08x, %s, %p, %d, 0x%08x, %p, %p, %p)
\n
"
,
TRACE
_
(
crypt
)
(
"(0x%08x, %s, %p, %d, 0x%08x, %p, %p, %p)
\n
"
,
dwCertEncodingType
,
debugstr_a
(
lpszStructType
),
pbEncoded
,
cbEncoded
,
dwFlags
,
pDecodePara
,
pvStructInfo
,
pcbStructInfo
);
...
...
@@ -4154,7 +4155,7 @@ BOOL WINAPI CryptDecodeObjectEx(DWORD dwCertEncodingType, LPCSTR lpszStructType,
else
if
(
!
strcmp
(
lpszStructType
,
szOID_ISSUING_DIST_POINT
))
decodeFunc
=
CRYPT_AsnDecodeIssuingDistPoint
;
else
TRACE
(
"OID %s not found or unimplemented, looking for DLL
\n
"
,
TRACE
_
(
crypt
)
(
"OID %s not found or unimplemented, looking for DLL
\n
"
,
debugstr_a
(
lpszStructType
));
if
(
!
decodeFunc
)
{
...
...
dlls/crypt32/encode.c
View file @
53087dbe
...
...
@@ -47,7 +47,8 @@
#include "wine/unicode.h"
#include "crypt32_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
crypt
);
WINE_DEFAULT_DEBUG_CHANNEL
(
cryptasn
);
WINE_DECLARE_DEBUG_CHANNEL
(
crypt
);
typedef
BOOL
(
WINAPI
*
CryptEncodeObjectFunc
)(
DWORD
,
LPCSTR
,
const
void
*
,
BYTE
*
,
DWORD
*
);
...
...
@@ -99,7 +100,7 @@ BOOL WINAPI CryptEncodeObject(DWORD dwCertEncodingType, LPCSTR lpszStructType,
HCRYPTOIDFUNCADDR
hFunc
;
CryptEncodeObjectFunc
pCryptEncodeObject
;
TRACE
(
"(0x%08x, %s, %p, %p, %p)
\n
"
,
dwCertEncodingType
,
TRACE
_
(
crypt
)
(
"(0x%08x, %s, %p, %p, %p)
\n
"
,
dwCertEncodingType
,
debugstr_a
(
lpszStructType
),
pvStructInfo
,
pbEncoded
,
pcbEncoded
);
...
...
@@ -3343,7 +3344,7 @@ BOOL WINAPI CryptEncodeObjectEx(DWORD dwCertEncodingType, LPCSTR lpszStructType,
CryptEncodeObjectExFunc
encodeFunc
=
NULL
;
HCRYPTOIDFUNCADDR
hFunc
=
NULL
;
TRACE
(
"(0x%08x, %s, %p, 0x%08x, %p, %p, %p)
\n
"
,
dwCertEncodingType
,
TRACE
_
(
crypt
)
(
"(0x%08x, %s, %p, 0x%08x, %p, %p, %p)
\n
"
,
dwCertEncodingType
,
debugstr_a
(
lpszStructType
),
pvStructInfo
,
dwFlags
,
pEncodePara
,
pvEncoded
,
pcbEncoded
);
...
...
@@ -3499,7 +3500,7 @@ BOOL WINAPI CryptEncodeObjectEx(DWORD dwCertEncodingType, LPCSTR lpszStructType,
else
if
(
!
strcmp
(
lpszStructType
,
szOID_ISSUING_DIST_POINT
))
encodeFunc
=
CRYPT_AsnEncodeIssuingDistPoint
;
else
TRACE
(
"OID %s not found or unimplemented, looking for DLL
\n
"
,
TRACE
_
(
crypt
)
(
"OID %s not found or unimplemented, looking for DLL
\n
"
,
debugstr_a
(
lpszStructType
));
if
(
!
encodeFunc
)
{
...
...
@@ -3613,9 +3614,9 @@ BOOL WINAPI CryptExportPublicKeyInfoEx(HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptPro
ExportPublicKeyInfoExFunc
exportFunc
=
NULL
;
HCRYPTOIDFUNCADDR
hFunc
=
NULL
;
TRACE
(
"(%08lx, %d, %08x, %s, %08x, %p, %p, %p)
\n
"
,
hCryptProv
,
dwKeySpec
,
dw
CertEncodingType
,
debugstr_a
(
pszPublicKeyObjId
),
dwFlags
,
pvAuxInfo
,
pInfo
,
pcbInfo
);
TRACE
_
(
crypt
)(
"(%08lx, %d, %08x, %s, %08x, %p, %p, %p)
\n
"
,
hCryptProv
,
dw
KeySpec
,
dwCertEncodingType
,
debugstr_a
(
pszPublicKeyObjId
),
dwFlags
,
p
vAuxInfo
,
p
Info
,
pcbInfo
);
if
(
!
hCryptProv
)
{
...
...
@@ -3692,7 +3693,7 @@ BOOL WINAPI CryptImportPublicKeyInfoEx(HCRYPTPROV hCryptProv,
ImportPublicKeyInfoExFunc
importFunc
=
NULL
;
HCRYPTOIDFUNCADDR
hFunc
=
NULL
;
TRACE
(
"(%08lx, %d, %p, %d, %08x, %p, %p)
\n
"
,
hCryptProv
,
TRACE
_
(
crypt
)
(
"(%08lx, %d, %p, %d, %08x, %p, %p)
\n
"
,
hCryptProv
,
dwCertEncodingType
,
pInfo
,
aiKeyAlg
,
dwFlags
,
pvAuxInfo
,
phKey
);
if
(
!
set
)
...
...
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