Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 502 Bytes

File metadata and controls

10 lines (8 loc) · 502 Bytes

Missing OpenSSL engine initialization

This query identifies loaded OpenSSL engines which are not passed to both ENGINE_init and ENGINE_set_default. ENGINE_init should always be called when a new engine is loaded. It is generally good practice to also call ENGINE_set_default to ensure that the primitives defined by the engine are used by default.

The following code snippet would be flagged as an issue by the query.

ENGINE* load_rdrand() {
    return ENGINE_by_id("rdrand");
}