summaryrefslogtreecommitdiff
path: root/openssl_utils.h
diff options
context:
space:
mode:
authorShawn Willden <swillden@google.com>2015-05-26 13:12:24 -0600
committerShawn Willden <swillden@google.com>2015-05-28 07:28:52 -0600
commit6270aca8571399aca8ea538acd7386ddecdcc112 (patch)
tree46a54b1056acfb42a77b385829584ed4c0cf628e /openssl_utils.h
parent4f83b89b2bdb1dacfa1c208786e29c0cd66f0b15 (diff)
downloadkeymaster-6270aca8571399aca8ea538acd7386ddecdcc112.tar.gz
Delegate ECDSA keys to keymaster0 in SoftKeymasterDevice.
Bug: 20912868 Change-Id: If63899e3244aed45d939d0165e6d94a1caa9d220
Diffstat (limited to 'openssl_utils.h')
-rw-r--r--openssl_utils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/openssl_utils.h b/openssl_utils.h
index af7e381..8ec0442 100644
--- a/openssl_utils.h
+++ b/openssl_utils.h
@@ -45,6 +45,14 @@ struct RSA_Delete {
void operator()(RSA* p) { RSA_free(p); }
};
+struct EC_GROUP_Delete {
+ void operator()(EC_GROUP* p) { EC_GROUP_free(p); }
+};
+
+struct EC_Delete {
+ void operator()(EC_KEY* p) { EC_KEY_free(p); }
+};
+
/**
* Many OpenSSL APIs take ownership of an argument on success but don't free the argument on
* failure. This means we need to tell our scoped pointers when we've transferred ownership, without