summaryrefslogtreecommitdiff
path: root/src/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hash.c b/src/hash.c
index fe319dd..17ff5c8 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -1,7 +1,7 @@
/*
* hash algorithms used in OAuth
*
- * Copyright 2007-2010 Robin Gareus <robin@gareus.org>
+ * Copyright 2007-2012 Robin Gareus <robin@gareus.org>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -219,7 +219,7 @@ char *oauth_sign_rsa_sha1 (const char *m, const char *k) {
looser:
if (pkey) SECKEY_DestroyPrivateKey(pkey);
if (slot) PK11_FreeSlot(slot);
- free(key);
+ xfree(key);
return rv;
}
@@ -259,7 +259,7 @@ int oauth_verify_rsa_sha1 (const char *m, const char *c, const char *sig) {
looser:
if (pkey) SECKEY_DestroyPublicKey(pkey);
if (slot) PK11_FreeSlot(slot);
- free(key);
+ xfree(key);
return rv;
}
@@ -445,7 +445,7 @@ int oauth_verify_rsa_sha1 (const char *m, const char *c, const char *s) {
err = EVP_VerifyFinal(&md_ctx, b64d, slen, pkey);
EVP_MD_CTX_cleanup(&md_ctx);
EVP_PKEY_free(pkey);
- free(b64d);
+ xfree(b64d);
return (err);
}