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
0d2f3037
Commit
0d2f3037
authored
May 05, 2020
by
Vijay Kiran Kamuju
Committed by
Alexandre Julliard
May 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msasn1: Implement ASN1_CloseModule function.
Signed-off-by:
Vijay Kiran Kamuju
<
infyquest@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
84096382
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
main.c
dlls/msasn1/main.c
+7
-0
msasn1.spec
dlls/msasn1/msasn1.spec
+1
-1
asn1.c
dlls/msasn1/tests/asn1.c
+3
-0
No files found.
dlls/msasn1/main.c
View file @
0d2f3037
...
...
@@ -84,3 +84,10 @@ ASN1module_t WINAPI ASN1_CreateModule(ASN1uint32_t ver, ASN1encodingrule_e rule,
return
module
;
}
void
WINAPI
ASN1_CloseModule
(
ASN1module_t
module
)
{
TRACE
(
"(%p)
\n
"
,
module
);
heap_free
(
module
);
}
dlls/msasn1/msasn1.spec
View file @
0d2f3037
...
...
@@ -219,7 +219,7 @@
@ stub ASN1_CloseDecoder
@ stub ASN1_CloseEncoder2
@ stub ASN1_CloseEncoder
@ st
ub ASN1_CloseModule
@ st
dcall ASN1_CloseModule(ptr)
@ stub ASN1_CreateDecoder
@ stub ASN1_CreateDecoderEx
@ stub ASN1_CreateEncoder
...
...
dlls/msasn1/tests/asn1.c
View file @
0d2f3037
...
...
@@ -55,6 +55,7 @@ static void test_CreateModule(void)
ok
(
mod
->
acbStructSize
==
size
,
"Struct size = %p.
\n
"
,
mod
->
acbStructSize
);
ok
(
!
mod
->
PER
.
apfnEncoder
,
"Encoder function should not be s et.
\n
"
);
ok
(
!
mod
->
PER
.
apfnDecoder
,
"Decoder function should not be set.
\n
"
);
ASN1_CloseModule
(
mod
);
mod
=
ASN1_CreateModule
(
ASN1_THIS_VERSION
,
ASN1_BER_RULE_DER
,
ASN1FLAGS_NOASSERT
,
1
,
encfn
,
decfn
,
freefn
,
size
,
name
);
ok
(
!!
mod
,
"Failed to create module.
\n
"
);
...
...
@@ -66,6 +67,7 @@ static void test_CreateModule(void)
ok
(
mod
->
acbStructSize
==
size
,
"Struct size = %p.
\n
"
,
mod
->
acbStructSize
);
ok
(
mod
->
BER
.
apfnEncoder
==
(
ASN1BerEncFun_t
*
)
encfn
,
"Encoder function = %p.
\n
"
,
mod
->
BER
.
apfnEncoder
);
ok
(
mod
->
BER
.
apfnDecoder
==
(
ASN1BerDecFun_t
*
)
decfn
,
"Decoder function = %p.
\n
"
,
mod
->
BER
.
apfnDecoder
);
ASN1_CloseModule
(
mod
);
mod
=
ASN1_CreateModule
(
ASN1_THIS_VERSION
,
ASN1_PER_RULE_ALIGNED
,
ASN1FLAGS_NOASSERT
,
1
,
encfn
,
decfn
,
freefn
,
size
,
name
);
ok
(
!!
mod
,
"Failed to create module.
\n
"
);
...
...
@@ -79,6 +81,7 @@ static void test_CreateModule(void)
broken
(
!
mod
->
PER
.
apfnEncoder
),
"Encoder function = %p.
\n
"
,
mod
->
PER
.
apfnEncoder
);
ok
(
mod
->
PER
.
apfnDecoder
==
(
ASN1PerDecFun_t
*
)
decfn
/* WINXP & WIN2008 */
||
broken
(
!
mod
->
PER
.
apfnDecoder
),
"Decoder function = %p.
\n
"
,
mod
->
PER
.
apfnDecoder
);
ASN1_CloseModule
(
mod
);
}
START_TEST
(
asn1
)
...
...
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