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
9bf81247
Commit
9bf81247
authored
May 08, 2020
by
Vijay Kiran Kamuju
Committed by
Alexandre Julliard
May 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msasn1: Add stub for ASN1_CloseDecoder function.
Signed-off-by:
Vijay Kiran Kamuju
<
infyquest@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fc2c1b5d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
main.c
dlls/msasn1/main.c
+5
-0
msasn1.spec
dlls/msasn1/msasn1.spec
+1
-1
asn1.c
dlls/msasn1/tests/asn1.c
+10
-0
No files found.
dlls/msasn1/main.c
View file @
9bf81247
...
...
@@ -185,3 +185,8 @@ ASN1error_e WINAPI ASN1_CreateDecoder(ASN1module_t module, ASN1decoding_t *decod
return
ASN1_SUCCESS
;
}
void
WINAPI
ASN1_CloseDecoder
(
ASN1decoding_t
decoder
)
{
FIXME
(
"(%p): Stub!
\n
"
,
decoder
);
}
dlls/msasn1/msasn1.spec
View file @
9bf81247
...
...
@@ -216,7 +216,7 @@
@ stub ASN1PEREncUnsignedShort
@ stub ASN1PEREncZero
@ stub ASN1PERFreeSeqOf
@ st
ub ASN1_CloseDecoder
@ st
dcall ASN1_CloseDecoder(ptr)
@ stub ASN1_CloseEncoder2
@ stdcall ASN1_CloseEncoder(ptr)
@ stdcall ASN1_CloseModule(ptr)
...
...
dlls/msasn1/tests/asn1.c
View file @
9bf81247
...
...
@@ -261,6 +261,7 @@ static void test_CreateDecoder(void)
ok
(
!
decoder
->
pos
,
"Got incorrect pos = %p.
\n
"
,
decoder
->
pos
);
ok
(
decoder
->
eRule
==
ASN1_BER_RULE_DER
,
"Got incorrect eRule = %08x.
\n
"
,
decoder
->
eRule
);
ok
(
decoder
->
dwFlags
==
ASN1DECODE_NOASSERT
,
"Got incorrect dwFlags = %08x.
\n
"
,
decoder
->
dwFlags
);
ASN1_CloseDecoder
(
decoder
);
ret
=
ASN1_CreateDecoder
(
mod
,
&
decoder
,
buf
,
0
,
NULL
);
ok
(
ASN1_SUCCEEDED
(
ret
),
"Got error code %d.
\n
"
,
ret
);
...
...
@@ -276,6 +277,7 @@ static void test_CreateDecoder(void)
ok
(
decoder
->
pos
==
buf
,
"Got incorrect pos = %s.
\n
"
,
decoder
->
pos
);
ok
(
decoder
->
eRule
==
ASN1_BER_RULE_DER
,
"Got incorrect eRule = %08x.
\n
"
,
decoder
->
eRule
);
ok
(
decoder
->
dwFlags
==
(
ASN1DECODE_NOASSERT
|
ASN1DECODE_SETBUFFER
),
"Got incorrect dwFlags = %08x.
\n
"
,
decoder
->
dwFlags
);
ASN1_CloseDecoder
(
decoder
);
ret
=
ASN1_CreateDecoder
(
mod
,
&
decoder
,
buf
,
2
,
NULL
);
ok
(
ASN1_SUCCEEDED
(
ret
),
"Got error code %d.
\n
"
,
ret
);
...
...
@@ -291,6 +293,7 @@ static void test_CreateDecoder(void)
ok
(
decoder
->
pos
==
buf
,
"Got incorrect pos = %p.
\n
"
,
decoder
->
pos
);
ok
(
decoder
->
eRule
==
ASN1_BER_RULE_DER
,
"Got incorrect eRule = %08x.
\n
"
,
decoder
->
eRule
);
ok
(
decoder
->
dwFlags
==
(
ASN1DECODE_NOASSERT
|
ASN1DECODE_SETBUFFER
),
"Got incorrect dwFlags = %08x.
\n
"
,
decoder
->
dwFlags
);
ASN1_CloseDecoder
(
decoder
);
ret
=
ASN1_CreateDecoder
(
mod
,
&
decoder
,
buf
,
4
,
NULL
);
ok
(
ASN1_SUCCEEDED
(
ret
),
"Got error code %d.
\n
"
,
ret
);
...
...
@@ -306,14 +309,17 @@ static void test_CreateDecoder(void)
ok
(
decoder
->
pos
==
buf
,
"Got incorrect pos = %p.
\n
"
,
decoder
->
pos
);
ok
(
decoder
->
eRule
==
ASN1_BER_RULE_DER
,
"Got incorrect rule = %08x.
\n
"
,
decoder
->
eRule
);
ok
(
decoder
->
dwFlags
==
(
ASN1DECODE_NOASSERT
|
ASN1DECODE_SETBUFFER
),
"Got incorrect dwFlags = %08x.
\n
"
,
decoder
->
dwFlags
);
ASN1_CloseDecoder
(
decoder
);
ASN1_CloseModule
(
mod
);
mod
=
ASN1_CreateModule
(
ASN1_THIS_VERSION
,
ASN1_BER_RULE_DER
,
ASN1FLAGS_NONE
,
1
,
encfn
,
decfn
,
freefn
,
size
,
name
);
ret
=
ASN1_CreateDecoder
(
mod
,
&
decoder
,
buf
,
0
,
NULL
);
ok
(
decoder
->
dwFlags
==
ASN1DECODE_SETBUFFER
,
"Got incorrect dwFlags = %08x.
\n
"
,
decoder
->
dwFlags
);
ASN1_CloseDecoder
(
decoder
);
ret
=
ASN1_CreateDecoder
(
mod
,
&
decoder
,
buf
,
4
,
NULL
);
ok
(
decoder
->
dwFlags
==
ASN1DECODE_SETBUFFER
,
"Got incorrect dwFlags = %08x.
\n
"
,
decoder
->
dwFlags
);
ASN1_CloseDecoder
(
decoder
);
ASN1_CloseModule
(
mod
);
mod
=
ASN1_CreateModule
(
ASN1_THIS_VERSION
,
ASN1_PER_RULE_ALIGNED
,
ASN1FLAGS_NOASSERT
,
1
,
encfn
,
decfn
,
freefn
,
size
,
name
);
...
...
@@ -331,6 +337,7 @@ static void test_CreateDecoder(void)
ok
(
decoder
->
pos
==
buf
,
"Got incorrect pos = %s.
\n
"
,
decoder
->
pos
);
ok
(
decoder
->
eRule
==
ASN1_PER_RULE_ALIGNED
,
"Got incorrect eRule = %08x.
\n
"
,
decoder
->
eRule
);
ok
(
decoder
->
dwFlags
==
(
ASN1DECODE_NOASSERT
|
ASN1DECODE_SETBUFFER
),
"Got incorrect dwFlags = %08x.
\n
"
,
decoder
->
dwFlags
);
ASN1_CloseDecoder
(
decoder
);
ret
=
ASN1_CreateDecoder
(
mod
,
&
decoder
,
buf
,
4
,
NULL
);
ok
(
!!
decoder
,
"Decoder creation failed.
\n
"
);
...
...
@@ -345,14 +352,17 @@ static void test_CreateDecoder(void)
ok
(
decoder
->
pos
==
buf
,
"Got incorrect pos = %p.
\n
"
,
decoder
->
pos
);
ok
(
decoder
->
eRule
==
ASN1_PER_RULE_ALIGNED
,
"Got incorrect rule = %08x.
\n
"
,
decoder
->
eRule
);
ok
(
decoder
->
dwFlags
==
(
ASN1FLAGS_NOASSERT
|
ASN1DECODE_SETBUFFER
),
"Got incorrect dwFlags = %08x.
\n
"
,
decoder
->
dwFlags
);
ASN1_CloseDecoder
(
decoder
);
ASN1_CloseModule
(
mod
);
mod
=
ASN1_CreateModule
(
ASN1_THIS_VERSION
,
ASN1_PER_RULE_ALIGNED
,
ASN1FLAGS_NONE
,
1
,
encfn
,
decfn
,
freefn
,
size
,
name
);
ret
=
ASN1_CreateDecoder
(
mod
,
&
decoder
,
buf
,
0
,
NULL
);
ok
(
decoder
->
dwFlags
==
ASN1DECODE_SETBUFFER
,
"Got incorrect dwFlags = %08x.
\n
"
,
decoder
->
dwFlags
);
ASN1_CloseDecoder
(
decoder
);
ret
=
ASN1_CreateDecoder
(
mod
,
&
decoder
,
buf
,
4
,
NULL
);
ok
(
decoder
->
dwFlags
==
ASN1DECODE_SETBUFFER
,
"Got incorrect dwFlags = %08x.
\n
"
,
decoder
->
dwFlags
);
ASN1_CloseDecoder
(
decoder
);
ASN1_CloseModule
(
mod
);
}
...
...
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