summaryrefslogtreecommitdiff
path: root/src/lib/eet_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eet_lib.c')
-rw-r--r--src/lib/eet_lib.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/eet_lib.c b/src/lib/eet_lib.c
index 98c9225..32b55cf 100644
--- a/src/lib/eet_lib.c
+++ b/src/lib/eet_lib.c
@@ -1595,6 +1595,9 @@ EAPI const void *
eet_identity_x509(Eet_File *ef,
int *der_length)
{
+ if (eet_check_pointer(ef))
+ return NULL;
+
if (!ef->x509_der)
return NULL;
@@ -1608,6 +1611,9 @@ EAPI const void *
eet_identity_signature(Eet_File *ef,
int *signature_length)
{
+ if (eet_check_pointer(ef))
+ return NULL;
+
if (!ef->signature)
return NULL;
@@ -1621,6 +1627,9 @@ EAPI const void *
eet_identity_sha1(Eet_File *ef,
int *sha1_length)
{
+ if (eet_check_pointer(ef))
+ return NULL;
+
if (!ef->sha1)
ef->sha1 = eet_identity_compute_sha1(ef->data,
ef->data_size,