Commit 0c7e7d49 authored by Ben Noordhuis's avatar Ben Noordhuis Committed by Daniel Bevenius
Browse files

src: use std::unique_ptr for STACK_OF(X509)

Convert manual memory management of STACK_OF(X509) instances to
std::unique_ptr with a custom deleter.

Note the tasteful application of std::move() to indicate a function
that consumes its argument.

PR-URL: https://github.com/nodejs/node/pull/19087


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarDaniel Bevenius <daniel.bevenius@gmail.com>
parent e46d0bc8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment