Commit 767200b2 authored by YannGarcia's avatar YannGarcia
Browse files

Fix Issue: Errors because of removing trailing 0A and 0D bytes from HTTP responses

parent 4c79dd3f
...@@ -1574,22 +1574,23 @@ module LibItsPki_Functions { ...@@ -1574,22 +1574,23 @@ module LibItsPki_Functions {
m_publicKeys( m_publicKeys(
m_publicVerificationKey_ecdsaNistP256(v_eccP256_curve_point) m_publicVerificationKey_ecdsaNistP256(v_eccP256_curve_point)
), ),
m_certificateSubjectAttributes( m_certificateSubjectAttributes_id_name(
{ // ETSI TS 102 965 Table A.1: ETSI ITS standardized ITS-AIDs oct2char(PICS_ITS_S_CANONICAL_ID),
valueof(m_appPermissions(c_its_aid_SCR, { bitmapSsp := '01C0'O })) { // ETSI TS 102 965 Table A.1: ETSI ITS standardized ITS-AIDs
}, valueof(m_appPermissions(c_its_aid_SCR, { bitmapSsp := '01C0'O }))
m_validityPeriod( },
f_getCurrentTime() / 1000, m_validityPeriod(
m_duration_in_hours(120) // TODO Use PIXIT f_getCurrentTime() / 1000,
), m_duration_in_hours(120) // TODO Use PIXIT
m_geographicRegion_identifiedRegion( ),
{ m_geographicRegion_identifiedRegion(
m_identifiedRegion_country_only(250), // TODO Use PIXIT {
m_identifiedRegion_country_only(380) // TODO Use PIXIT m_identifiedRegion_country_only(250), // TODO Use PIXIT
} m_identifiedRegion_country_only(380) // TODO Use PIXIT
), }
'00'O // TODO Use PIXIT ),
) '00'O // TODO Use PIXIT
)
) )
); );
if (PICS_SECPKI_REENROLMENT) { // This is a re-enrolment, the identifier of its current valid Enrolment Credential if (PICS_SECPKI_REENROLMENT) { // This is a re-enrolment, the identifier of its current valid Enrolment Credential
......
...@@ -258,19 +258,34 @@ module LibItsPki_Templates { ...@@ -258,19 +258,34 @@ module LibItsPki_Templates {
encryptionKey := p_encryptionKey encryptionKey := p_encryptionKey
} // End of template mw_publicKeys } // End of template mw_publicKeys
template (omit) CertificateSubjectAttributes m_certificateSubjectAttributes( template (omit) CertificateSubjectAttributes m_certificateSubjectAttributes_id_none(
in template (value) SequenceOfPsidSsp p_appPermissions, in template (value) SequenceOfPsidSsp p_appPermissions,
in template (omit) ValidityPeriod p_validityPeriod := omit, in template (omit) ValidityPeriod p_validityPeriod := omit,
in template (omit) GeographicRegion p_region := omit, in template (omit) GeographicRegion p_region := omit,
in template (omit) SubjectAssurance p_assuranceLevel := omit in template (omit) SubjectAssurance p_assuranceLevel := omit
) := { ) := {
id := { none_ := NULL }, id := { none_ := NULL },
validityPeriod := p_validityPeriod,
region := p_region,
assuranceLevel := p_assuranceLevel,
appPermissions := p_appPermissions,
certIssuePermissions := omit
} // End of template m_certificateSubjectAttributes_id_none
template (omit) CertificateSubjectAttributes m_certificateSubjectAttributes_id_name(
in template (value) Hostname p_name,
in template (value) SequenceOfPsidSsp p_appPermissions,
in template (omit) ValidityPeriod p_validityPeriod := omit,
in template (omit) GeographicRegion p_region := omit,
in template (omit) SubjectAssurance p_assuranceLevel := omit
) := {
id := { name := p_name },
validityPeriod := p_validityPeriod, validityPeriod := p_validityPeriod,
region := p_region, region := p_region,
assuranceLevel := p_assuranceLevel, assuranceLevel := p_assuranceLevel,
appPermissions := p_appPermissions, appPermissions := p_appPermissions,
certIssuePermissions := omit certIssuePermissions := omit
} // End of template m_certificateSubjectAttributes } // End of template m_certificateSubjectAttributes_id_name
template (value) InnerEcResponse m_innerEcResponse_ok( template (value) InnerEcResponse m_innerEcResponse_ok(
in template (value) Oct16 p_requestHash, in template (value) Oct16 p_requestHash,
......
Supports Markdown
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