Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3a50b1fe
Commit
3a50b1fe
authored
Aug 10, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Aug 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Improve tracing when builtin function isn't available.
parent
f8480551
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
decode.c
dlls/crypt32/decode.c
+6
-5
encode.c
dlls/crypt32/encode.c
+2
-2
No files found.
dlls/crypt32/decode.c
View file @
3a50b1fe
...
...
@@ -4050,8 +4050,6 @@ static CryptDecodeObjectExFunc CRYPT_GetBuiltinDecoder(DWORD dwCertEncodingType,
case
(
WORD
)
PKCS7_SIGNER_INFO
:
decodeFunc
=
CRYPT_AsnDecodePKCSSignerInfo
;
break
;
default:
FIXME
(
"%d: unimplemented
\n
"
,
LOWORD
(
lpszStructType
));
}
}
else
if
(
!
strcmp
(
lpszStructType
,
szOID_CERT_EXTENSIONS
))
...
...
@@ -4088,9 +4086,6 @@ static CryptDecodeObjectExFunc CRYPT_GetBuiltinDecoder(DWORD dwCertEncodingType,
decodeFunc
=
CRYPT_AsnDecodeEnhancedKeyUsage
;
else
if
(
!
strcmp
(
lpszStructType
,
szOID_ISSUING_DIST_POINT
))
decodeFunc
=
CRYPT_AsnDecodeIssuingDistPoint
;
else
TRACE_
(
crypt
)(
"OID %s not found or unimplemented
\n
"
,
debugstr_a
(
lpszStructType
));
return
decodeFunc
;
}
...
...
@@ -4152,6 +4147,8 @@ BOOL WINAPI CryptDecodeObject(DWORD dwCertEncodingType, LPCSTR lpszStructType,
if
(
!
(
pCryptDecodeObjectEx
=
CRYPT_GetBuiltinDecoder
(
dwCertEncodingType
,
lpszStructType
)))
{
TRACE_
(
crypt
)(
"OID %s not found or unimplemented, looking for DLL
\n
"
,
debugstr_a
(
lpszStructType
));
pCryptDecodeObject
=
CRYPT_LoadDecoderFunc
(
dwCertEncodingType
,
lpszStructType
,
&
hFunc
);
if
(
!
pCryptDecodeObject
)
...
...
@@ -4204,8 +4201,12 @@ BOOL WINAPI CryptDecodeObjectEx(DWORD dwCertEncodingType, LPCSTR lpszStructType,
*
(
BYTE
**
)
pvStructInfo
=
NULL
;
decodeFunc
=
CRYPT_GetBuiltinDecoder
(
dwCertEncodingType
,
lpszStructType
);
if
(
!
decodeFunc
)
{
TRACE_
(
crypt
)(
"OID %s not found or unimplemented, looking for DLL
\n
"
,
debugstr_a
(
lpszStructType
));
decodeFunc
=
CRYPT_LoadDecoderExFunc
(
dwCertEncodingType
,
lpszStructType
,
&
hFunc
);
}
if
(
decodeFunc
)
ret
=
decodeFunc
(
dwCertEncodingType
,
lpszStructType
,
pbEncoded
,
cbEncoded
,
dwFlags
,
pDecodePara
,
pvStructInfo
,
pcbStructInfo
);
...
...
dlls/crypt32/encode.c
View file @
3a50b1fe
...
...
@@ -3493,6 +3493,8 @@ BOOL WINAPI CryptEncodeObject(DWORD dwCertEncodingType, LPCSTR lpszStructType,
if
(
!
(
pCryptEncodeObjectEx
=
CRYPT_GetBuiltinEncoder
(
dwCertEncodingType
,
lpszStructType
)))
{
TRACE_
(
crypt
)(
"OID %s not found or unimplemented, looking for DLL
\n
"
,
debugstr_a
(
lpszStructType
));
pCryptEncodeObject
=
CRYPT_LoadEncoderFunc
(
dwCertEncodingType
,
lpszStructType
,
&
hFunc
);
if
(
!
pCryptEncodeObject
)
...
...
@@ -3500,10 +3502,8 @@ BOOL WINAPI CryptEncodeObject(DWORD dwCertEncodingType, LPCSTR lpszStructType,
lpszStructType
,
&
hFunc
);
}
if
(
pCryptEncodeObject
)
{
ret
=
pCryptEncodeObject
(
dwCertEncodingType
,
lpszStructType
,
pvStructInfo
,
pbEncoded
,
pcbEncoded
);
}
else
if
(
pCryptEncodeObjectEx
)
ret
=
pCryptEncodeObjectEx
(
dwCertEncodingType
,
lpszStructType
,
pvStructInfo
,
0
,
NULL
,
pbEncoded
,
pcbEncoded
);
...
...
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