Skip to content

Instantly share code, notes, and snippets.

@Adenilson
Created February 12, 2015 22:42
Show Gist options
  • Save Adenilson/a60a1a2a5415e7929e6b to your computer and use it in GitHub Desktop.
Save Adenilson/a60a1a2a5415e7929e6b to your computer and use it in GitHub Desktop.
--- old_openssl_shim.c 2015-02-11 21:41:12.000000000 -0800
+++ old_openssl_shim.c 2015-02-11 21:20:41.000000000 -0800
@@ -35,15 +35,15 @@
#else /* OLD_OPENSSL */
-int HMAC_Init_ex_shim(HMAC_CTX *ctx, const void *key, int key_len, const EVP_MD *md, ENGINE *impl) {
+void HMAC_Init_ex_shim(HMAC_CTX *ctx, const void *key, int key_len, const EVP_MD *md, ENGINE *impl) {
return HMAC_Init_ex(ctx, key, key_len, md, impl);
}
-int HMAC_Update_shim(HMAC_CTX *ctx, const unsigned char *data, int len) {
+void HMAC_Update_shim(HMAC_CTX *ctx, const unsigned char *data, int len) {
return HMAC_Update(ctx, data, len);
}
-int HMAC_Final_shim(HMAC_CTX *ctx, unsigned char *md, unsigned int *len) {
+void HMAC_Final_shim(HMAC_CTX *ctx, unsigned char *md, unsigned int *len) {
return HMAC_Final(ctx, md, len);
}
#endif /* OLD_OPENSSL */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment