DEENESPTFRRUARHIKOZHNL

क्लास ara::crypto::x509::CertificateValidationCtx

[SWS_CRYPT_50115] Upstream: RS_CRYPTO_02205

class CertificateValidationCtx {...};

Certificate Validation Context.

Header-Datei#include "ara/crypto/x509/certificate_validation_ctx.h"
Forwarding-Header#include "ara/crypto/crypto_fwd.h"
Scopenamespace ara::crypto::x509

उपयोगकर्ता गाइडएआई जनित

कॉन्फ़िगर किए गए ट्रस्ट एंकर के आधार पर X.509 प्रमाणपत्रों और प्रमाणपत्र श्रृंखलाओं के पथ सत्यापन के लिए उपयोग किया जाता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: aa16fb2bd5c5 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

कॉन्फ़िगर किए गए ट्रस्ट एंकर के आधार पर X.509 प्रमाणपत्रों और प्रमाणपत्र श्रृंखलाओं के पथ सत्यापन के लिए उपयोग किया जाता है।

क्लास ara::crypto::x509::CertificateValidationCtx का उपयोग RFC 5280 ([SWS_CRYPT_50122]) के अनुसार X.509 प्रमाणपत्रों और संपूर्ण प्रमाणपत्र श्रृंखलाओं के सत्यापन के लिए किया जाता है। निष्पादन से पहले, एप्लिकेशन ट्रस्ट एंकर, वैकल्पिक मध्यवर्ती प्रमाणपत्र, सत्यापन समय और सत्यापन विकल्प जोड़कर संदर्भ को कॉन्फ़िगर करता है और आवश्यकतानुसार निरसन जांच के लिए OCSP प्रतिक्रियाओं को एकीकृत करता है ([SWS_CRYPT_50117])। यदि OCSP प्रतिक्रियाएं पंजीकृत हैं, तो पथ सत्यापन में असंगति त्रुटियों से बचने के लिए सत्यापन विकल्पों में संबंधित OCSP व्यवहार को अनिवार्य रूप से परिभाषित किया जाना चाहिए। सभी इंटरफ़ेस मेथड अपवाद-सुरक्षित हैं और समवर्ती एक्सेस के लिए डिज़ाइन की गई हैं।

संदर्भ

क्लास ara::crypto::x509::CertificateValidationCtx RFC 5280 ([SWS_CRYPT_50122], [SWS_CRYPT_50123]) के अनुसार X.509 प्रमाणपत्रों और प्रमाणपत्र श्रृंखलाओं के सत्यापन के लिए मानकीकृत इंटरफ़ेस को परिभाषित करती है। AUTOSAR Adaptive Platform की समग्र प्रणाली में, यह विश्वास संबंधों को सिद्ध करने, प्रमाणपत्र पथों को सत्यापित करने और सुरक्षा संबंधों में उनके उपयोग से पहले क्रिप्टोग्राफ़िक प्रमाणपत्रों की स्थिति निर्धारित करने का कार्य करती है।

कॉल करने वाला एप्लिकेशन मुख्य इंटरैक्शन पार्टनर के रूप में कार्य करता है, जो संदर्भ को ट्रस्ट एंकर ([SWS_CRYPT_50117]), अविश्वसनीय मध्यवर्ती प्रमाणपत्र ([SWS_CRYPT_50118]) और OCSP प्रतिक्रियाओं के रूप में निरसन जानकारी ([SWS_CRYPT_50124]) प्रदान करता है। सत्यापन का परिणाम CertificateValidationResult ([SWS_CRYPT_50122]) के रूप में प्रदान किया जाता है।

CertificateValidationCtxKontext Anwendung Anwendung CertificateValidationCtx CertificateValidationCtx Anwendung->CertificateValidationCtx कॉन्फ़िगर और नियंत्रित करता है CertificateValidationResult CertificateValidationResult CertificateValidationCtx->CertificateValidationResult परीक्षण परिणाम प्रदान करता है Certificate Certificate Certificate->CertificateValidationCtx ट्रस्ट एंकर या परीक्षण ऑब्जेक्ट के रूप में कार्य करता है OcspResponse OcspResponse OcspResponse->CertificateValidationCtx निरसन स्थिति (revocation status) प्रदान करता है

संदर्भ आरेख: एप्लिकेशन, इनपुट प्रमाणपत्रों, निरसन जांचों और परिणाम ऑब्जेक्ट के बीच CertificateValidationCtx का एकीकरण। स्रोत: [SWS_CRYPT_50117], [SWS_CRYPT_50122], [SWS_CRYPT_50124]।

जीवनचक्र

इंटरफ़ेस के इंस्टैंस को टाइप उपनाम Sptr ([SWS_CRYPT_50116]) के माध्यम से std::shared_ptr<CertificateValidationCtx> के रूप में प्रबंधित किया जाता है, जो उपयोग करने वाले सॉफ़्टवेयर घटकों द्वारा साझा स्वामित्व और लचीले जीवनकाल नियंत्रण को सक्षम बनाता है। चूंकि यह एक शुद्ध वर्चुअल इंटरफ़ेस क्लास है, इसलिए कोई सार्वजनिक कंस्ट्रक्टर मौजूद नहीं है; विशिष्ट संदर्भ इंस्टैंस का निर्माण संभवतः क्रिप्टो स्टैक के प्रदाता कार्यान्वयन के संबंधित निर्माण फ़ंक्शंस के माध्यम से किया जाएगा। प्रश्न Q-6ac4ee6766e22994 (खुला)

समवर्तीता के संबंध में, सभी वर्चुअल सदस्य फ़ंक्शन थ्रेड-सुरक्षित (thread-safe) के रूप में निर्दिष्ट हैं ([SWS_CRYPT_50117], [SWS_CRYPT_50120], [SWS_CRYPT_50122])। इसके अलावा, सभी मेथड अपवाद सुरक्षा (exception safe) सुनिश्चित करती हैं और noexcept के साथ घोषित हैं ([SWS_CRYPT_50117], [SWS_CRYPT_50122])। स्थिति के अनुसार, संदर्भ एक कॉन्फ़िगर करने योग्य संचायक के रूप में व्यवहार करता है: यह सत्यापन पैरामीटर, प्रमाणपत्र और स्थिति प्रतिक्रियाएं प्राप्त करता है और सत्यापन चरणों के लिए उन्हें बनाए रखता है।

उपयोग पथ

सत्यापन संदर्भ का विशिष्ट उपयोग कॉन्फ़िगरेशन चरणों और बाद के सत्यापन निष्पादन के एक संरचित अनुक्रम में विभाजित है:

  1. ट्रस्ट एंकर संग्रहीत करना: पथ सत्यापन के प्रारंभिक बिंदु के रूप में AddTrustedCertificate ([SWS_CRYPT_50117]) का उपयोग करके एक या अधिक विश्वसनीय प्रमाणपत्र जोड़े जाते हैं। अतिरिक्त, अविश्वसनीय मध्यवर्ती प्रमाणपत्र AddUntrustedCertificate ([SWS_CRYPT_50118]) के माध्यम से प्रदान किए जा सकते हैं।
  2. सत्यापन नियम और संदर्भ समय कॉन्फ़िगर करना: सत्यापन व्यवहार को नियंत्रित करने के लिए SetValidationOptions ([SWS_CRYPT_50120]) के माध्यम से एक बिटमास्क पास किया जाता है। SetCurrentTime ([SWS_CRYPT_50121]) के साथ वैधता जांच के लिए एक स्पष्ट समय निर्धारित किया जा सकता है; यदि यह कॉल नहीं की जाती है, तो संदर्भ स्वचालित रूप से सिस्टम समय का उपयोग करता है ([SWS_CRYPT_50121])। यदि विशिष्ट, असमर्थित महत्वपूर्ण एक्सटेंशन को सत्यापन से बाहर रखा जाना है, तो उनकी OID को IgnoreCriticalExtension ([SWS_CRYPT_50119]) के माध्यम से पंजीकृत किया जा सकता है। यदि विकल्प kIgnoreUnknownCriticalExtensions सेट है, तो इसका कोई प्रभाव नहीं पड़ता है ([SWS_CRYPT_50119])।
  3. निरसन जानकारी जोड़ना: AddOcspResponse ([SWS_CRYPT_50124]) के माध्यम से एक या अधिक OCSP प्रतिक्रियाएं जोड़ी जा सकती हैं। OCSP प्रतिक्रिया जारीकर्ता को या तो पहले संदर्भ में एक प्रमाणपत्र के रूप में संग्रहीत किया गया होना चाहिए, उसी CA के विस्तारित-कुंजी-उपयोग विशेषता id-kp-OCSPSigning का होना चाहिए या वैकल्पिक पैरामीटर trustedOcspIssuerCertificate के माध्यम से पास किया जाना चाहिए ([SWS_CRYPT_50124])।
  4. सत्यापन निष्पादित करना: ValidateCertificate ([SWS_CRYPT_50122]) का उपयोग लक्ष्य प्रमाणपत्र को सत्यापित करने के लिए किया जाता है। वैकल्पिक रूप से, ValidateCertificateChain ([SWS_CRYPT_50123]) स्थिति 0 पर लीफ़ प्रमाणपत्र से शुरू होकर एक क्रमबद्ध प्रमाणपत्र श्रृंखला को सत्यापित करता है। इस प्रक्रिया में, पहले AddUntrustedCertificate के माध्यम से पंजीकृत प्रमाणपत्रों को अनदेखा कर दिया जाता है और केवल पास की गई श्रृंखला को विश्वसनीय प्रमाणपत्रों के विरुद्ध जाँचा जाता है ([SWS_CRYPT_50123])।
प्रमाणपत्र सत्यापन का अनुक्रमएप्लिकेशनCertificateValidationCtxAddTrustedCertificate(caCert)Result<void>SetValidationOptions(options)Result<void>optOCSP सत्यापनAddOcspResponse(ocspResp, issuerCert)Result<CertificateValidationStatus>ValidateCertificate(targetCert)Result<CertificateValidationResult::Sptrc>

अनुक्रम आरेख: प्रमाणपत्रों के कॉन्फ़िगरेशन और सत्यापन के लिए विशिष्ट कॉल अनुक्रम। स्रोत: [SWS_CRYPT_50117], [SWS_CRYPT_50120], [SWS_CRYPT_50122], [SWS_CRYPT_50124]।

त्रुटि परिदृश्य

त्रुटि प्रबंधन बिना C++ अपवादों के ara::core::Result के माध्यम से सुसंगत रूप से किया जाता है:

  • अमान्य कॉन्फ़िगरेशन विकल्प: यदि SetValidationOptions को अमान्य बिटमास्क के साथ कॉल किया जाता है, तो कॉल विफल हो जाती है और रोलबैक सेमेन्टिक्स के साथ त्रुटि कोड ara::crypto::CryptoErrc::kInvalidArgument लौटाती है ([SWS_CRYPT_50120])।
  • परस्पर विरोधी OCSP कॉन्फ़िगरेशन: यदि AddOcspResponse के माध्यम से कम से कम एक OCSP प्रतिक्रिया संग्रहीत की गई है, बिना CertificateValidationOptions में OCSP के लिए व्यवहार निर्दिष्ट किए, तो ValidateCertificate ([SWS_CRYPT_50122]) और ValidateCertificateChain ([SWS_CRYPT_50123]) दोनों रोलबैक सेमेन्टिक्स के साथ त्रुटि ara::crypto::CryptoErrc::kIncompatibleArguments लौटाते हैं।
  • विफल OCSP सत्यापन: यदि AddOcspResponse ([SWS_CRYPT_50124]) में किसी OCSP प्रतिक्रिया के हस्ताक्षर या मूल को परिभाषित मानदंडों के विरुद्ध सत्यापित नहीं किया जा सकता है, तो फ़ंक्शन kValid के बजाय संबंधित स्थिति कोड CertificateValidationStatus या कार्यान्वयन-विशिष्ट त्रुटि लौटाता है।
  • कार्यान्वयन-विशिष्ट त्रुटियां: क्रिप्टो लाइब्रेरी की आंतरिक समस्याओं के मामले में, AddTrustedCertificate ([SWS_CRYPT_50117]) या IgnoreCriticalExtension ([SWS_CRYPT_50119]) जैसी मेथड परिणाम ऑब्जेक्ट में कार्यान्वयन-विशिष्ट त्रुटि कोड रिपोर्ट कर सकती हैं।

यह गाइड AUTOSAR Adaptive Platform R25-11 विनिर्देश की आवश्यकताओं पर आधारित है।

सदस्य मानचित्र

क्लास आरेख

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__crypto__x509__CertificateValidationCtx565 CertificateValidationCtx + AddOcspResponse() + AddTrustedCertificate() + AddUntrustedCertificate() + IgnoreCriticalExtension() + SetCurrentTime() + SetValidationOptions() + ValidateCertificate() + ValidateCertificateChain()

विवरण दृश्य

रूपरेखा में कोई प्रविष्टि चुनें।

मेथड

AddOcspResponse फ़ंक्शन

Validate and add an OCSP response to be used during certificate validation to the set of previously added OCSP responses. Multiple OCSP responses may be added to one context. In order to validate the OCSP response, the issuer of the OCSP response must have been a) set as a trusted or untrusted certificate in this context previously, or b) the CRL must have been signed by another certificate that has the id-kp-OCSPSigning extended key usage set issued by the same CA, or c) the CRL must be signed by a trusted CA passed to this function using the optional trustedOcspIssuerCertificate parameter.

virtual ara::core::Result< CertificateValidationStatus > AddOcsp Response (OcspResponse::Sptrc ocspResponse, ara::core::Optional< Certificate::Sptrc > trustedOcspIssuerCertificate) noexcept=0;
AddTrustedCertificate फ़ंक्शन

Add a trusted certificates to be used during certificate path validation to the set of previously added trusted certificates.

virtual ara::core::Result< void > AddTrustedCertificate ( Certificate::Sptrc trustedCertificate) noexcept=0;
AddUntrustedCertificate फ़ंक्शन

Add an untrusted certificate to be used during certificate path validation to the set of previously added untrusted certificates.

virtual ara::core::Result< void > AddUntrustedCertificate ( Certificate::Sptrc untrustedCertificate) noexcept=0;
IgnoreCriticalExtension फ़ंक्शन

Configure the context to ignore an extension during validation of certificates and OCSP responses, even if the extension is marked as critical and the validation context does not support the extension. It is the responsibility of the application to validate such extensions. Multiple invocations of this function lead to ignoring all passed extensions. This function has no effect if the kIgnoreUnknownCriticalExtensions validation option is set.

virtual ara::core::Result< void > IgnoreCriticalExtension (ara::core::StringView ignoredExtensionOid) noexcept=0;
SetCurrentTime फ़ंक्शन

Set the reference time point to be used as the current time during certificate validation. If this function is not called, the system time will be used during certificate validation.

virtual ara::core::Result< void > SetCurrentTime (Timestamp current Time) noexcept=0;
SetValidationOptions फ़ंक्शन

Set validation options to be used during certificate validation.

virtual ara::core::Result< void > SetValidationOptions (Certificate ValidationOptions CertificateValidationOptions) noexcept=0;
ValidateCertificate फ़ंक्शन

Performs certificate path validation according to RFC 5280 and according to the previous configuration of the context.

virtual ara::core::Result< CertificateValidationResult::Sptrc > ValidateCertificate (Certificate::Sptrc certificate) noexcept=0;
ValidateCertificateChain फ़ंक्शन

Performs certificate path validation according to RFC 5280 and according to the previous configuration of the context. The function ignores any certificates added to the context via Add UntrustedCertificate. Instead, the function validates the provided chain against any trusted certificate that has been set using the function AddTrustedCertificate.

virtual ara::core::Result< CertificateValidationResult::Sptrc > ValidateCertificateChain (const ara::core::Span< Certificate::Sptrc > certificateChain) noexcept=0;

टाइप उपनाम

Sptr टाइप उपनाम

Smart pointer of the interface.

मेथड का प्रलेखन

फ़ंक्शन AddOcspResponse [SWS_CRYPT_50124] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< CertificateValidationStatus > AddOcsp Response (OcspResponse::Sptrc ocspResponse, ara::core::Optional< Certificate::Sptrc > trustedOcspIssuerCertificate) noexcept=0;

Validate and add an OCSP response to be used during certificate validation to the set of previously added OCSP responses. Multiple OCSP responses may be added to one context. In order to validate the OCSP response, the issuer of the OCSP response must have been a) set as a trusted or untrusted certificate in this context previously, or b) the CRL must have been signed by another certificate that has the id-kp-OCSPSigning extended key usage set issued by the same CA, or c) the CRL must be signed by a trusted CA passed to this function using the optional trustedOcspIssuerCertificate parameter.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 8459f26838c0 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग

क्लास ara::crypto::x509::CertificateValidationCtx की विधि AddOcspResponse पास की गई OCSP प्रतिक्रिया (ocspResponse) को मान्य करती है और मान्य होने पर इसे सत्यापन संदर्भ में पहले से संग्रहीत OCSP प्रतिक्रियाओं के सेट में जोड़ती है [SWS_CRYPT_50124]। एक संदर्भ में एकाधिक प्रतिक्रियाएँ जोड़ी जा सकती हैं [SWS_CRYPT_50124]। वैकल्पिक पैरामीटर trustedOcspIssuerCertificate के माध्यम से एक विशिष्ट प्रमाणपत्र पास किया जा सकता है जिसे OCSP प्रतिक्रिया के सत्यापन में विश्वसनीय माना जाता है; यदि इस पैरामीटर को छोड़ दिया जाता है, तो सत्यापन पहले AddTrustedCertificate के माध्यम से कॉन्फ़िगर किए गए प्रमाणपत्रों का उपयोग करता है [SWS_CRYPT_50124]।

सिंक्रोनस कॉल एक ara::core::Result<CertificateValidationStatus> लौटाता है, जिसमें सफल स्वीकृति पर स्थिति kValid होती है या अन्यथा OCSP सत्यापन का परिणाम अथवा कोई त्रुटि प्रदर्शित होती है [SWS_CRYPT_50124]।

त्रुटि प्रबंधन

विनिर्देश इस कॉल के लिए किसी मानकीकृत त्रुटि कोड को परिभाषित नहीं करता है [SWS_CRYPT_50124]। यदि ऑपरेशन विफल रहता है, तो या तो परिणाम में संगत सत्यापन स्थिति ले जाई जाती है या Result ऑब्जेक्ट के माध्यम से एक कार्यान्वयन-विशिष्ट त्रुटि का संकेत दिया जाता है [SWS_CRYPT_50124]।

समवर्तीता और प्रतिबंध

ऑपरेशन को थ्रेड-सुरक्षित (thread-safe) और अपवाद-सुरक्षित (exception-safe) के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_50124]। OCSP प्रतिक्रिया का सत्यापन सफल होने के लिए, निम्नलिखित शर्तों में से एक पूरी होनी चाहिए [SWS_CRYPT_50124]:

  • जारीकर्ता को पहले संदर्भ में एक विश्वसनीय या गैर-विश्वसनीय प्रमाणपत्र के रूप में संग्रहीत किया गया हो [SWS_CRYPT_50124]।
  • हस्ताक्षर उसी प्रमाणपत्र प्राधिकरण (CA) के id-kp-OCSPSigning एक्सटेंशन सेट वाले प्रमाणपत्र से आता हो [SWS_CRYPT_50124]।
  • हस्ताक्षर किसी विश्वसनीय CA से आता हो जिसे सीधे trustedOcspIssuerCertificate के माध्यम से पास किया गया था [SWS_CRYPT_50124]।

इंटरैक्शन

पंजीकृत OCSP प्रतिक्रियाएँ परवर्ती सत्यापन जांचों में शामिल होती हैं, जैसा कि [SWS_CRYPT_50122] (ValidateCertificate) और [SWS_CRYPT_50123] (ValidateCertificateChain) द्वारा किया जाता है। व्याख्या: प्रमाणपत्रों की निरस्तीकरण स्थिति (revocation status) को ध्यान में रखने के लिए OCSP प्रतिक्रियाओं को पथ सत्यापन शुरू होने से पहले जोड़ा जाना आवश्यक हो सकता है। प्रश्न Q-fbb0711617fd7895 (खुला)

यह पाठ विनिर्देश डेटा के आधार पर एक AI द्वारा उत्पन्न किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I2)

Header-Datei#include "ara/crypto/x509/certificate_validation_ctx.h"
Scopeclass ara::crypto::x509::CertificateValidationCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
ocspResponseThe OCSP response to be used during certificate validation.
trustedOcspIssuerCertificateIf provided, the certificate to be considered trusted during validation of the OCSP response. If not provided, the certificates added via AddTrustedCertificate are considered trusted.

Rückgabewert

TypBeschreibung
ara::core::Result<CertificateValidationStatus >a result containing kValid if the response was added, or the result of the OCSP response validation, or an implementation specific error otherwise.

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50124
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50124@rel:R25-11#c7880bd9
Content hash
c7880bd9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50124
Status: valid/unmigrated Version: rel:R25-11#802cfd8b Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50124@rel:R25-11#802cfd8b
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन AddTrustedCertificate [SWS_CRYPT_50117] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< void > AddTrustedCertificate ( Certificate::Sptrc trustedCertificate) noexcept=0;

Add a trusted certificates to be used during certificate path validation to the set of previously added trusted certificates.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 715eb0a30fe3 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

वर्ग ara::crypto::x509::CertificateValidationCtx की विधि AddTrustedCertificate बाद के सत्यापनों के लिए विश्वसनीय प्रमाणपत्रों के सेट में एक और प्रमाणपत्र जोड़ती है [SWS_CRYPT_50117]।

उपयोग

कॉल ara/crypto/x509/certificate_validation_ctx.h में इंटरफ़ेस के माध्यम से की जाती है। पैरामीटर के रूप में प्रकार Certificate::Sptrc का trustedCertificate पास किया जाता है, जिसे प्रमाणपत्र पथ सत्यापन के दौरान विश्वसनीय माना जाता है [SWS_CRYPT_50117]। सफल निष्पादन पर फ़ंक्शन एक खाली ara::core::Result<void> लौटाता है [SWS_CRYPT_50117]।

त्रुटि प्रबंधन

विशिष्टता इस फ़ंक्शन के लिए कोई मानकीकृत त्रुटि कोड परिभाषित नहीं करती है [SWS_CRYPT_50117]। यदि प्रोसेसिंग के दौरान कोई त्रुटि होती है, तो ara::core::Result के माध्यम से कार्यान्वयन-विशिष्ट त्रुटि की सूचना दी जाती है [SWS_CRYPT_50117]।

समवर्तीता और प्रतिबंध

विधि को noexcept=0 के रूप में घोषित किया गया है, अपवाद-सुरक्षित (exception safe) माना जाता है और स्पष्ट रूप से थ्रेड-सुरक्षित (thread-safe) के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_50117]।

इंटरैक्शन

पंजीकृत विश्वसनीय प्रमाणपत्र सत्यापन संदर्भ के अन्य फ़ंक्शनों के साथ परस्पर क्रिया करते हैं:

  • ValidateCertificateChain में, RFC 5280 के अनुसार एक प्रमाणपत्र श्रृंखला को पहले AddTrustedCertificate के माध्यम से संग्रहीत विश्वसनीय प्रमाणपत्रों के विरुद्ध सत्यापित किया जाता है, जबकि गैर-विश्वसनीय प्रमाणपत्रों को अनदेखा कर दिया जाता है [SWS_CRYPT_50123]।
  • AddOcspResponse के मामले में, OCSP प्रतिक्रिया की वैधता की जाँच करने के लिए संदर्भ में पहले सेट किए गए एक विश्वसनीय प्रमाणपत्र को जारीकर्ता के रूप में उपयोग किया जा सकता है [SWS_CRYPT_50124]।

यह उपयोग नोट विशिष्टता स्थिति R25-11 के आधार पर स्वचालित रूप से जनरेट किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "ara/crypto/x509/certificate_validation_ctx.h"
Scopeclass ara::crypto::x509::CertificateValidationCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
trustedCertificatea certificate to be considered trusted during certificate path validation.

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result on success, or an implementation specific error.

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50117
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50117@rel:R25-11#ad0fa857
Content hash
ad0fa857
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50117
Status: valid/unmigrated Version: rel:R25-11#d31aab33 Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50117@rel:R25-11#d31aab33
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन AddUntrustedCertificate [SWS_CRYPT_50118] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< void > AddUntrustedCertificate ( Certificate::Sptrc untrustedCertificate) noexcept=0;

Add an untrusted certificate to be used during certificate path validation to the set of previously added untrusted certificates.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 1896ca7ced68 उद्गम खुले प्रश्न (2)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

संदर्भ प्रकार ara::crypto::x509::CertificateValidationCtx की विधि AddUntrustedCertificate पहले पंजीकृत प्रमाणपत्रों के सेट में एक गैर-भरोसेमंद प्रमाणपत्र जोड़ती है, ताकि प्रमाणपत्र पथ सत्यापन के दौरान इसे ध्यान में रखा जा सके [SWS_CRYPT_50118]। समावेशन हेडर फ़ाइल #include "ara/crypto/x509/certificate_validation_ctx.h" के माध्यम से होता है [SWS_CRYPT_50118]। एक पैरामीटर के रूप में, ध्यान में रखे जाने वाले प्रमाणपत्र (Certificate::Sptrc untrustedCertificate) का एक स्मार्ट-पॉइंटर पास किया जाता है [SWS_CRYPT_50118]। चूंकि विधि तुरंत एक ara::core::Result<void> लौटाती है, इसलिए पंजीकरण सिंक्रोनस रूप से नियंत्रित किया जाना चाहिए [SWS_CRYPT_50118]। प्रश्न Q-879b384ff6efe687 (खुला)

त्रुटि प्रबंधन के संबंध में, AUTOSAR इस इंटरफ़ेस के लिए किसी भी मानकीकृत त्रुटि कोड को निर्दिष्ट नहीं करता है [SWS_CRYPT_50118]। सफलता के मामले में, लौटाए गए ara::core::Result में कोई मान नहीं होता है (void); त्रुटि के मामले में, यह एक कार्यान्वयन-विशिष्ट त्रुटि कोड प्रदान करता है [SWS_CRYPT_50118]। इसलिए कॉलर्स को सत्यापन संदर्भ के आगे उपयोग से पहले त्रुटियों के लिए परिणाम ऑब्जेक्ट की जांच करनी चाहिए। विधि को noexcept के रूप में घोषित किया गया है और अपवाद-सुरक्षित (exception safe) के रूप में वर्गीकृत किया गया है, जिससे इंटरफ़ेस सीमा के पार कोई C++ अपवाद प्रसारित नहीं होता है [SWS_CRYPT_50118]।

ऑपरेशन को स्पष्ट रूप से थ्रेड-सुरक्षित (thread-safe) घोषित किया गया है [SWS_CRYPT_50118]। इस प्रकार एकाधिक थ्रेड समवर्ती रूप से एक ही सत्यापन संदर्भ में प्रमाणपत्र जोड़ सकते हैं। यह सुनिश्चित करने के लिए कि सत्यापन एल्गोरिदम के लिए सभी आवश्यक प्रमाणपत्र उपलब्ध हैं, कॉल को पथ सत्यापन शुरू होने से पहले समझदारी से किया जाना चाहिए [SWS_CRYPT_50118]।

यह उपयोग नोट एक AI द्वारा उत्पन्न किया गया था और यह AUTOSAR R25-11 की विनिर्देश स्थिति पर आधारित है।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "ara/crypto/x509/certificate_validation_ctx.h"
Scopeclass ara::crypto::x509::CertificateValidationCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
untrustedCertificatea certificate to be considered untrusted during certificate path validation.

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result on success, or an implementation specific error.

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50118
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50118@rel:R25-11#6a78c37f
Content hash
6a78c37f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50118
Status: valid/unmigrated Version: rel:R25-11#6956d0c9 Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50118@rel:R25-11#6956d0c9
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन IgnoreCriticalExtension [SWS_CRYPT_50119] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< void > IgnoreCriticalExtension (ara::core::StringView ignoredExtensionOid) noexcept=0;

Configure the context to ignore an extension during validation of certificates and OCSP responses, even if the extension is marked as critical and the validation context does not support the extension. It is the responsibility of the application to validate such extensions. Multiple invocations of this function lead to ignoring all passed extensions. This function has no effect if the kIgnoreUnknownCriticalExtensions validation option is set.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 7db4b0cd4a9e उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग

[SWS_CRYPT_50119] पर विधि IgnoreCriticalExtension ara::crypto::x509::CertificateValidationCtx के इंस्टेंस को इस तरह से कॉन्फ़िगर करती है कि प्रमाणपत्रों और OCSP प्रतिक्रियाओं के सत्यापन के दौरान एक विशिष्ट प्रमाणपत्र एक्सटेंशन को अनदेखा किया जाता है। यह तब भी लागू होता है जब एक्सटेंशन को महत्वपूर्ण (क्रिटिकल) के रूप में चिह्नित किया गया हो और मूल रूप से सत्यापन संदर्भ द्वारा समर्थित न हो। पैरामीटर ignoredExtensionOid अनदेखा किए जाने वाले एक्सटेंशन के OID को ara::core::StringView के रूप में लेता है। एकाधिक कॉलों के परिणामस्वरूप सभी पास किए गए एक्सटेंशन OID को अनदेखा कर दिया जाता है। निष्पादन सिंक्रोनस रूप से होता है और इसे noexcept के रूप में घोषित किया गया है।

त्रुटि हैंडलिंग और समवर्तीता

फ़ंक्शन किसी भी मानकीकृत त्रुटि कोड को निर्दिष्ट नहीं करता है; सफलता के मामले में, यह एक खाली ara::core::Result<void> लौटाता है, जबकि त्रुटि के मामले में एक कार्यान्वयन-विशिष्ट त्रुटि कोड शामिल होता है [SWS_CRYPT_50119]। समवर्तीता के संबंध में, इंटरफ़ेस को थ्रेड-सुरक्षित (thread-safe) और अपवाद-सुरक्षित (exception safe) निर्दिष्ट किया गया है।

सीमाएं और परस्पर क्रिया

यदि किसी महत्वपूर्ण एक्सटेंशन को अनदेखा किया जाता है, तो उस एक्सटेंशन का कार्यात्मक सत्यापन पूरी तरह से एप्लिकेशन की ज़िम्मेदारी है [SWS_CRYPT_50119]। यदि सत्यापन विकल्प kIgnoreUnknownCriticalExtensions सेट किया गया है, तो कॉल का कोई अतिरिक्त प्रभाव नहीं होता है। असमर्थित महत्वपूर्ण एक्सटेंशन को छोड़ना संभवतः [SWS_CRYPT_40203] के भाग के रूप में (जैसे CertificateValidationStatus के निर्धारण में) बाद के पथ सत्यापन को विफल होने से रोकता है। प्रश्न Q-a087c9a9543c092a (खुला)

यह पाठ AI द्वारा तैयार किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "ara/crypto/x509/certificate_validation_ctx.h"
Scopeclass ara::crypto::x509::CertificateValidationCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
ignoredExtensionOidthe OID of the extension to be ignored during certificate and OCSP response validation

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result on success, or an implementation specific error.

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50119
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50119@rel:R25-11#4a727f14
Content hash
4a727f14
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50119
Status: valid/unmigrated Version: rel:R25-11#fedabb0a Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50119@rel:R25-11#fedabb0a
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन SetCurrentTime [SWS_CRYPT_50121] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< void > SetCurrentTime (Timestamp current Time) noexcept=0;

Set the reference time point to be used as the current time during certificate validation. If this function is not called, the system time will be used during certificate validation.

Header-Datei#include "ara/crypto/x509/certificate_validation_ctx.h"
Scopeclass ara::crypto::x509::CertificateValidationCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
currentTimeThe time point to be used as the current time during certificate validation.

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result on success, or an implementation specific error.

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50121
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50121@rel:R25-11#19231c25
Content hash
19231c25
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50121
Status: valid/unmigrated Version: rel:R25-11#9a207572 Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50121@rel:R25-11#9a207572
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन SetValidationOptions [SWS_CRYPT_50120] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< void > SetValidationOptions (Certificate ValidationOptions CertificateValidationOptions) noexcept=0;

Set validation options to be used during certificate validation.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: e7e89f73aaa9 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग

[SWS_CRYPT_50120] के अनुसार वर्ग ara::crypto::x509::CertificateValidationCtx की विधि SetValidationOptions प्रमाणपत्र सत्यापन के निष्पादन के लिए विकल्पों को परिभाषित करने का कार्य करती है। पैरामीटर के रूप में शुद्ध वर्चुअल फ़ंक्शन CertificateValidationOptions की अपेक्षा करता है, जो वांछित सत्यापन विकल्पों की पहचान के लिए एक बिटमास्क है। कॉल हेडर ara/crypto/x509/certificate_validation_ctx.h के माध्यम से प्रदान की जाती है।

त्रुटि प्रबंधन

[SWS_CRYPT_50120] के अनुसार इंटरफ़ेस एक ara::core::Result<void> लौटाता है। सफल निष्पादन पर, परिणाम में कोई मान नहीं होता है (खाली परिणाम)। यदि विकल्पों के लिए कोई अमान्य मान पास किया जाता है, तो ऑपरेशन त्रुटि कोड ara::crypto::CryptoErrc::kInvalidArgument के साथ विफल हो जाता है। इसमें रोलबैक सेमेंटिक्स लागू होता है। यदि कोई अन्य त्रुटि होती है, तो एक कार्यान्वयन-विशिष्ट त्रुटि कोड लौटाया जा सकता है।

समवर्तीता और प्रतिबंध

[SWS_CRYPT_50120] के अनुसार, विधि को थ्रेड-सुरक्षित (thread-safe) के रूप में निर्दिष्ट किया गया है और इसे समवर्ती रूप से कॉल किया जा सकता है। इसे अपवाद-सुरक्षित (exception safe) और noexcept के साथ भी घोषित किया गया है, यही कारण है कि इंटरफ़ेस सीमा के पार कोई अपवाद नहीं फेंका जाना चाहिए।

यह पाठ AUTOSAR R25-11 पर आधारित एक AI द्वारा तैयार किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "ara/crypto/x509/certificate_validation_ctx.h"
Scopeclass ara::crypto::x509::CertificateValidationCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
CertificateValidationOptionsA bitmask identifying validation options. The semantics of each option is specified in the CertificateValidationOptions type.

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result on success, or an implementation specific error.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics an invalid CertificateValidationOptions has been provided

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50120
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50120@rel:R25-11#eb7be821
Content hash
eb7be821
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50120
Status: valid/unmigrated Version: rel:R25-11#ffc647e8 Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50120@rel:R25-11#ffc647e8
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ValidateCertificate [SWS_CRYPT_50122] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< CertificateValidationResult::Sptrc > ValidateCertificate (Certificate::Sptrc certificate) noexcept=0;

Performs certificate path validation according to RFC 5280 and according to the previous configuration of the context.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 8c454149c627 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

हेडर ara/crypto/x509/certificate_validation_ctx.h से क्लास ara::crypto::x509::CertificateValidationCtx की विधि ValidateCertificate RFC 5280 के अनुसार सिंक्रोनस प्रमाणपत्र पथ सत्यापन करती है [SWS_CRYPT_50122]। सत्यापन जांच इंस्टेंस संदर्भ के पूर्व कॉन्फ़िगरेशन के आधार पर की जाती है। एकमात्र इनपुट पैरामीटर के रूप में, मान्य किए जाने वाले प्रमाणपत्र को प्रकार Certificate::Sptrc के पॉइंटर certificate के माध्यम से पास किया जाता है [SWS_CRYPT_50122]।

रिटर्न प्रकार के रूप में ara::core::Result<CertificateValidationResult::Sptrc> कार्य करता है, जिसमें सफलता की स्थिति में सत्यापन परिणाम का एक पॉइंटर होता है या त्रुटि की स्थिति में एक त्रुटि कोड प्रदान किया जाता है [SWS_CRYPT_50122]। कार्यान्वयन-विशिष्ट त्रुटियों के अलावा, विशिष्ट त्रुटि कोड ara::crypto::CryptoErrc::kIncompatibleArguments उत्पन्न हो सकता है [SWS_CRYPT_50122]। इसमें रोलबैक सिमेंटिक्स होता है और यह तब लौटाया जाता है जब AddOcspResponse के माध्यम से एक OCSP प्रतिक्रिया संग्रहीत की गई हो, लेकिन कॉन्फ़िगर किए गए CertificateValidationOptions कोई OCSP व्यवहार निर्दिष्ट नहीं करते हैं।

निष्पादन सुरक्षा और समवर्तीता के संबंध में, विधि को थ्रेड-सुरक्षित (thread-safe) और साथ ही अपवाद-सुरक्षित (exception safe) निर्दिष्ट किया गया है और यह कोई अपवाद नहीं फेंकती है (noexcept) [SWS_CRYPT_50122]। क्रम संबंधी शर्त के रूप में, यह ध्यान दिया जाना चाहिए कि सत्यापन संदर्भ को पहले से इनिशियलाइज़ और कॉन्फ़िगर किया जाना चाहिए, क्योंकि जांच सीधे इसकी पूर्व-सेटिंग्स पर आधारित होती है [SWS_CRYPT_50122]।

यह उपयोग नोट AUTOSAR Adaptive Platform R25-11 विनिर्देश पर आधारित है।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "ara/crypto/x509/certificate_validation_ctx.h"
Scopeclass ara::crypto::x509::CertificateValidationCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
certificateThe certificate to be validated.

Rückgabewert

TypBeschreibung
ara::core::Result<CertificateValidationResult::Sptrc >The result of the certificate validation, or an implementation specific error.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if an OCSP response has been set via AddOcspResponse, but the CertificateValidationOptions do not specify the OCSP behavior.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50122
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50122@rel:R25-11#6f5f0548
Content hash
6f5f0548
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50122
Status: valid/unmigrated Version: rel:R25-11#9b4a138d Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50122@rel:R25-11#9b4a138d
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ValidateCertificateChain [SWS_CRYPT_50123] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< CertificateValidationResult::Sptrc > ValidateCertificateChain (const ara::core::Span< Certificate::Sptrc > certificateChain) noexcept=0;

Performs certificate path validation according to RFC 5280 and according to the previous configuration of the context. The function ignores any certificates added to the context via Add UntrustedCertificate. Instead, the function validates the provided chain against any trusted certificate that has been set using the function AddTrustedCertificate.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 3d06a1d393b7 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

संदर्भ ara::crypto::x509::CertificateValidationCtx में विधि ValidateCertificateChain RFC 5280 के अनुसार प्रमाणपत्र श्रृंखला का तुल्यकालिक पथ सत्यापन (path validation) करती है [SWS_CRYPT_50123]।

उपयोग और पैरामीटर

इनपुट के रूप में, फ़ंक्शन पैरामीटर certificateChain के माध्यम से प्रकार ara::core::Span<Certificate::Sptrc> की एक श्रृंखला की अपेक्षा करता है। इसमें, तत्व 0 लीफ़ प्रमाणपत्र (Leaf Certificate) का प्रतिनिधित्व करता है, जबकि प्रत्येक बाद के तत्व में ठीक पिछले प्रमाणपत्र का जारीकर्ता (issuer) शामिल होना चाहिए [SWS_CRYPT_50123]। फ़ंक्शन उन प्रमाणपत्रों को अनदेखा करता है जो पहले AddUntrustedCertificate के माध्यम से पंजीकृत किए गए थे, और पास की गई श्रृंखला को विशेष रूप से ट्रस्ट एंकरों के विरुद्ध मान्य करता है, जिन्हें AddTrustedCertificate के माध्यम से संग्रहीत किया गया था [SWS_CRYPT_50123]।

त्रुटि प्रबंधन

परिणाम संपुटित रूप में ara::core::Result<CertificateValidationResult::Sptrc> के रूप में उपलब्ध कराया जाता है, जिसमें या तो सत्यापन परिणाम का एक सूचक (pointer) या एक त्रुटि कोड शामिल होता है [SWS_CRYPT_50123]। त्रुटि ara::crypto::CryptoErrc::kIncompatibleArguments रोलबैक सिमेंटिक्स के साथ तब होती है जब पहले AddOcspResponse के माध्यम से एक OCSP प्रतिक्रिया सेट की गई हो, लेकिन वर्तमान CertificateValidationOptions कोई OCSP व्यवहार परिभाषित नहीं करते हों [SWS_CRYPT_50123]। अन्य त्रुटि कारणों की रिपोर्ट कार्यान्वयन-विशिष्ट त्रुटि कोड के रूप में की जाती है [SWS_CRYPT_50123]।

समवर्तीता और निष्पादन सुरक्षा

इंटरफ़ेस को noexcept के रूप में घोषित किया गया है, इसे अपवाद-सुरक्षित (exception safe) माना जाता है और समवर्ती पहुंच के लिए इसे थ्रेड-सुरक्षित (thread-safe) के रूप में वर्गीकृत किया गया है [SWS_CRYPT_50123]।

यह पाठ AI द्वारा जनरेट किया गया था और तकनीकी मार्गदर्शन के लिए है।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "ara/crypto/x509/certificate_validation_ctx.h"
Scopeclass ara::crypto::x509::CertificateValidationCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
certificateChainThe certificate chain to be validated. Element 0 contains the leaf certificate and each subsequent certificate contains the issuer of the previous certificate.

Rückgabewert

TypBeschreibung
ara::core::Result<CertificateValidationResult::Sptrc >The result of the certificate validation, or an implementation specific error.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if an OCSP response has been set via AddOcspResponse, but the CertificateValidationOptions do not specify the OCSP behavior.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50123
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50123@rel:R25-11#851f671a
Content hash
851f671a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50123
Status: valid/unmigrated Version: rel:R25-11#2fc9935e Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50123@rel:R25-11#2fc9935e
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

टाइप उपनामों का प्रलेखन

टाइप उपनाम Sptr [SWS_CRYPT_50116] Upstream: RS_CRYPTO_02205

using Sptr = std::shared_ptr<CertificateValidationCtx>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/x509/certificate_validation_ctx.h"
Scopeclass ara::crypto::x509::CertificateValidationCtx
SymbolSptr

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50116
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50116@rel:R25-11#696a4809
Content hash
696a4809
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50116
Status: valid/unmigrated Version: rel:R25-11#57ba261f Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50116@rel:R25-11#57ba261f
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill