함수 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.
사용
클래스 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]. - 서명이
trustedOcspIssuerCertificate을(를) 통해 직접 전달된 신뢰할 수 있는 CA로부터 생성된 것이어야 합니다 [SWS_CRYPT_50124].
상호 작용
등록된 OCSP 응답은 [SWS_CRYPT_50122](ValidateCertificate) 및 [SWS_CRYPT_50123](ValidateCertificateChain)에 의해 수행되는 것과 같은 후속 검증 검사에 반영됩니다. Interpretation: 인증서의 폐기 상태를 고려할 수 있도록 경로 검증을 시작하기 전에 OCSP 응답을 추가해야 할 것으로 추정됩니다. 질문 Q-fbb0711617fd7895 (열림)
이 텍스트는 사양 데이터를 기반으로 AI에 의해 생성되었습니다.
구현자 가이드 준비 중 (복잡도 I2)
| Header-Datei | #include "ara/crypto/x509/certificate_validation_ctx.h" |
|---|---|
| Scope | class ara::crypto::x509::CertificateValidationCtx |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| ocspResponse | The OCSP response to be used during certificate validation. |
| trustedOcspIssuerCertificate | If 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
| Typ | Beschreibung |
|---|---|
| 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
| Fehlercode | Beschreibung |
|---|---|
| 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#d0efd44c- Content hash
d0efd44c- 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
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · 독일어 원문