diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2014-04-17 19:21:35 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2014-04-17 19:21:35 +0000 |
commit | fcef386e7515078851ab94c8b3c2686b09cacd96 (patch) | |
tree | 9c746953362692b25805582e403b32ec433c4f96 /src/hash.c | |
parent | 9ff9d2902caf8a85c5019c11214d73e67053ba69 (diff) | |
download | liboauth-master.tar.gz |
liboauth-1.0.3HEADliboauth-1.0.3master
Diffstat (limited to 'src/hash.c')
-rw-r--r-- | src/hash.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |