Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ITS - Intelligent Transport Systems
ITS
Commits
ffef11d9
Commit
ffef11d9
authored
Feb 20, 2019
by
Denis Filatov
Browse files
fix generation of certIssuingPermissions
parent
f19dbe8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/itscertgen/asn1certgen/asn1certgen.xslt
View file @
ffef11d9
...
...
@@ -130,9 +130,13 @@
<xsl:apply-templates
mode=
"region"
select=
"../validity/restriction[@type='region']"
/>
<xsl:apply-templates
select=
"attribute[@type='assurance_level']"
/>
<xsl:apply-templates
select=
"attribute[@type='its_aid_ssp_list']"
/>
<xsl:apply-templates
select=
"attribute[@type='its_aid_list']"
>
<xsl:with-param
name=
"certType"
select=
"@type"
/>
</xsl:apply-templates>
<xsl:if
test=
"attribute[@type='its_aid_list']"
>
<certIssuePermissions>
<xsl:apply-templates
select=
"attribute[@type='its_aid_list']"
>
<xsl:with-param
name=
"certType"
select=
"@type"
/>
</xsl:apply-templates>
</certIssuePermissions>
</xsl:if>
<xsl:apply-templates
select=
"attribute[@type='encryption_key']"
/>
<xsl:apply-templates
select=
"attribute[@type='verification_key']"
/>
</toBeSigned>
...
...
@@ -160,7 +164,6 @@
<xsl:template
match=
"attribute[@type='its_aid_list']"
>
<xsl:param
name=
"certType"
/>
<certIssuePermissions>
<PsidGroupPermissions>
<subjectPermissions>
<explicit>
...
...
@@ -171,10 +174,9 @@
</subjectPermissions>
<minChainLength>
<xsl:choose>
<xsl:when
test=
"@minChainLength"
><xsl:value-of
select=
"@minChainLength"
/></xsl:when>
<xsl:when
test=
"$certType = 'ROOT'"
>
2
</xsl:when>
<xsl:when
test=
"$certType = 'AA'"
>
1
</xsl:when>
<xsl:when
test=
"$certType = 'EA'"
>
1
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
<xsl:otherwise>
1
</xsl:otherwise>
</xsl:choose>
</minChainLength>
<chainLengthRange>
...
...
@@ -188,13 +190,15 @@
<xsl:when
test=
"@eeType = 'enrol'"
>
<xsl:text>
01000000
</xsl:text>
</xsl:when>
<xsl:
otherwise
>
<xsl:
when
test=
"@eeType = 'app'"
>
<xsl:text>
10000000
</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>
11000000
</xsl:text>
</xsl:otherwise>
</xsl:choose>
</eeType>
</PsidGroupPermissions>
</certIssuePermissions>
</xsl:template>
<xsl:template
mode=
"certIssuePermissions"
match=
"aid"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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