forked from github/securitylab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpenSSLVerify.qll
More file actions
26 lines (21 loc) · 738 Bytes
/
OpenSSLVerify.qll
File metadata and controls
26 lines (21 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import cpp
/**
* Common utilities for OpenSSL certificate verification.
*/
class SslSetVerifyFunctionCall extends FunctionCall {
SslSetVerifyFunctionCall() { this.getTarget().hasName("SSL_set_verify") }
}
class SslCtxSetVerifyFunctionCall extends FunctionCall {
SslCtxSetVerifyFunctionCall() { this.getTarget().hasName("SSL_CTX_set_verify") }
}
class SslLikeSetVerifyFunctionCall extends FunctionCall {
SslLikeSetVerifyFunctionCall() {
this instanceof SslCtxSetVerifyFunctionCall or
this instanceof SslSetVerifyFunctionCall
}
}
class SslCtxSetCertVerifyCallbackFunctionCall extends FunctionCall {
SslCtxSetCertVerifyCallbackFunctionCall() {
this.getTarget().hasName("SSL_CTX_set_cert_verify_callback")
}
}