Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
TTCN-3 Libraries
LibIts
Compare revisions
15ed56907addc3e8af880b5363e3616a3842f7a6...311f461d726a794d9cf30cf5a14b1f6ca5b74ddc
Commits (3)
Review Pki Layer
· 19386aa9
Yann Garcia
authored
Oct 10, 2018
19386aa9
STF545: Add acPort support for Pki
· c3af4d2d
garciay
authored
Oct 10, 2018
c3af4d2d
STF545: Add acPort support for Pki
· 311f461d
garciay
authored
Oct 11, 2018
311f461d
Show whitespace changes
Inline
Side-by-side
ttcn/Pki/LibItsPki_TestSystem.ttcn
View file @
311f461d
...
@@ -37,24 +37,34 @@ module LibItsPki_TestSystem {
...
@@ -37,24 +37,34 @@ module LibItsPki_TestSystem {
// LibItsGeoNetworking
// LibItsGeoNetworking
import
from
LibItsGeoNetworking_TestSystem
all
;
import
from
LibItsGeoNetworking_TestSystem
all
;
// LibItsPki
import
from
LibItsPki_TypesAndValues
all
;
/**
* @desc Adapter control port
*/
// type port AdapterControlPort message {
// out AcPkiPrimitive;
// in AcPkiResponse;
// } // End of AdapterControlPort
type
port
PkiPort
message
{
type
port
PkiPort
message
{
inout
InnerEcRequest
,
InnerEcResponse
;
inout
InnerEcRequest
,
InnerEcResponse
;
}
}
type
component
ItsPkiSystem
{
type
component
ItsPkiSystem
{
// port LibItsPki_TestSystem.AdapterControlPort acPkiPort;
port
PkiPort
pkiPort
;
port
PkiPort
pkiPort
;
}
// End of component ItsPkiSystem
}
// End of component ItsPkiSystem
type
component
ItsPkiHttpSystem
extends
HttpTestAdapter
{
type
component
ItsPkiHttpSystem
extends
HttpTestAdapter
{
}
// End of component ItsPkiHttpSystem
}
// End of component ItsPkiHttpSystem
type
component
ItsPkiItssSystem
extends
ItsPkiSystem
{
type
component
ItsPkiItssSystem
extends
ItsPkiSystem
,
ItsGeoNetworking
{
port
LibItsGeoNetworking_TestSystem
.
AdapterControlPort
acPort
;
port
LibItsGeoNetworking_TestSystem
.
UpperTesterPort
utPort
;
port
GeoNetworkingPort
geoNetworkingPort
;
}
// End of component ItsPkiItssSystem
}
// End of component ItsPkiItssSystem
type
component
ItsPki
extends
ItsSecurityBaseComponent
,
ItsBaseMtc
{
type
component
ItsPki
extends
ItsSecurityBaseComponent
,
ItsBaseMtc
{
// port LibItsPki_TestSystem.AdapterControlPort acPkiPort;
port
PkiPort
pkiPort
;
port
PkiPort
pkiPort
;
var
Certificate
vc_eaCertificate
;
/** Test Adapter EA certificate */
var
Certificate
vc_eaCertificate
;
/** Test Adapter EA certificate */
...
@@ -66,6 +76,7 @@ module LibItsPki_TestSystem {
...
@@ -66,6 +76,7 @@ module LibItsPki_TestSystem {
type
component
ItsPkiItss
extends
ItsGeoNetworking
{
type
component
ItsPkiItss
extends
ItsGeoNetworking
{
port
PkiPort
pkiPort
;
port
PkiPort
pkiPort
;
// port LibItsPki_TestSystem.AdapterControlPort acPkiPort;
}
// End of component ItsPkiItss
}
// End of component ItsPkiItss
}
// End of module LibItsPki_TestSystem
}
// End of module LibItsPki_TestSystem
ttcn/Pki/LibItsPki_TypesAndValues.ttcn
0 → 100644
View file @
311f461d
/**
* @author ETSI / STF545
* @version $URL$
* $Id$
* @desc Module containing templates for IT PKI Protocol
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*/
module
LibItsPki_TypesAndValues
{
group
acPrimitives
{
/**
* @desc TA primitives for Pki
*/
type
union
AcPkiPrimitive
{
AcSetSecurityData
acSetSecurityData
}
with
{
variant
""
}
/**
* @desc Primitive for receiveing response from TA
*/
type
union
AcPkiResponse
{
boolean
result
}
type
record
AcSetSecurityData
{
charstring
certificateId
,
charstring
peer_certificateId
,
octetstring
private_key
,
octetstring
public_key_compressed
,
integer
public_key_compressed_mode
}
with
{
variant
""
encode
"LibItsPki"
}
// AcSetSecurityData
}
// end acPrimitives
with
{
variant
""
encode
"AdapterControl"
}
}
with
{
variant
""
encode
"LibItsPki"
}
// End of module LibItsPki_TypesAndValues