ssl_get_tlsext_status_ocsp_resp
API Overview
SSL_get_tlsext_status_ocsp_resp is an API in openssl. This rule belongs to the return value check type. This rule is generated using AURC.
Rule Description
tip
SSL_get_tlsext_status_ocsp_resp() returns the length of the OCSP response data or -1 if there is no OCSP response data.
info
- Tags: return value check
- Parameter Index: N/A
- CWE Type: CWE-253
Rule Code
import cpp
class OpenSSLFunctionCall extends FunctionCall {
OpenSSLFunctionCall() {
this.getTarget().hasName("SSL_get_tlsext_status_ocsp_resp")
}
}
from OpenSSLFunctionCall call, UnaryOperation uop
where
uop.getOperator() = "!" and
uop.getOperand() = call.getAnAccess()
select uop, "This negation checks the return value of SSL_get_tlsext_status_ocsp_resp."