6 #ifndef MOTORCORTEX_LICENSE_SCOPE_GUARD_H
7 #define MOTORCORTEX_LICENSE_SCOPE_GUARD_H
9 #include <mbedtls/x509_crt.h>
17 explicit ScopeGuard(mbedtls_x509_crt& crt) : crt_{crt} {}
19 ~
ScopeGuard() { mbedtls_x509_crt_free(&crt_); }
22 mbedtls_x509_crt& crt_;
29 #endif // MOTORCORTEX_LICENSE_SCOPE_GUARD_H