aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Lappo2017-03-23 15:44:26 -0500
committerMikhail Lappo2017-03-23 15:52:30 -0500
commitb49767c0bacb714e14f988423e14832689c6faf2 (patch)
treed9263ecace61d37381854e4dcc5d41cc514173b2 /verifier.h
parent20791bdcd7caad0e3ad3adedf7f9f932da278d96 (diff)
downloadplatform-bootable-recovery-b49767c0bacb714e14f988423e14832689c6faf2.tar.gz
platform-bootable-recovery-b49767c0bacb714e14f988423e14832689c6faf2.tar.xz
platform-bootable-recovery-b49767c0bacb714e14f988423e14832689c6faf2.zip
Const modifiers
This functions do not change class variables Would be good to mark them as const, so class variables are not changed by coincidence Change-Id: Iea34f6d26dbd1bde813035160e07ff2a681989e6
Diffstat (limited to 'verifier.h')
-rw-r--r--verifier.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/verifier.h b/verifier.h
index 6bee7494..6fa8f2b0 100644
--- a/verifier.h
+++ b/verifier.h
@@ -26,13 +26,13 @@
26#include <openssl/sha.h> 26#include <openssl/sha.h>
27 27
28struct RSADeleter { 28struct RSADeleter {
29 void operator()(RSA* rsa) { 29 void operator()(RSA* rsa) const {
30 RSA_free(rsa); 30 RSA_free(rsa);
31 } 31 }
32}; 32};
33 33
34struct ECKEYDeleter { 34struct ECKEYDeleter {
35 void operator()(EC_KEY* ec_key) { 35 void operator()(EC_KEY* ec_key) const {
36 EC_KEY_free(ec_key); 36 EC_KEY_free(ec_key);
37 } 37 }
38}; 38};