Commit d2f3f3aa authored by Vijay Kiran Kamuju's avatar Vijay Kiran Kamuju Committed by Alexandre Julliard

msasn1: Add stub for ASN1_Decode function.

ASN1decoding_t and ASN1encoding_t are implemented as linked lists. Current implementation does not properly emulate the linked list, as we need to identify where the next link pointers are stored. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=38020Signed-off-by: 's avatarVijay Kiran Kamuju <infyquest@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 87fa906a
......@@ -190,3 +190,21 @@ void WINAPI ASN1_CloseDecoder(ASN1decoding_t decoder)
{
FIXME("(%p): Stub!\n", decoder);
}
ASN1error_e WINAPI ASN1_Decode(ASN1decoding_t decoder, void **outdata, ASN1uint32_t pdunum,
ASN1uint32_t flags, ASN1octet_t *buf, ASN1uint32_t bufsize)
{
FIXME("(%p %p %u %08x %p %u): Stub!\n", decoder, outdata, pdunum, flags, buf, bufsize);
if (!decoder)
return ASN1_ERR_BADARGS;
if (!buf || !bufsize)
{
decoder->err = ASN1_ERR_BADARGS;
return ASN1_ERR_BADARGS;
}
decoder->err = ASN1_ERR_BADPDU;
return ASN1_ERR_BADPDU;
}
......@@ -224,7 +224,7 @@
@ stub ASN1_CreateDecoderEx
@ stdcall ASN1_CreateEncoder(ptr ptr ptr long ptr)
@ stdcall ASN1_CreateModule(long long long long ptr ptr ptr ptr long)
@ stub ASN1_Decode
@ stdcall ASN1_Decode(ptr ptr long long ptr long)
@ stub ASN1_Encode
@ stub ASN1_FreeDecoded
@ stub ASN1_FreeEncoded
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment