File ocki-3.2_01_fix-return-type-error.patch of Package openCryptoki.2906

--- opencryptoki.orig/usr/lib/pkcs11/common/mech_sha.c	2014-09-09 22:24:28.000000000 -0600
+++ opencryptoki/usr/lib/pkcs11/common/mech_sha.c	2015-08-19 18:26:46.010266000 -0600
@@ -1805,7 +1805,7 @@ void sha1_init(DIGEST_CONTEXT *ctx)
 		token_specific.t_sha_init(ctx);
 }
 
-sha2_init(DIGEST_CONTEXT *ctx)
+void sha2_init(DIGEST_CONTEXT *ctx)
 {
 	if (token_specific.t_sha2_init == NULL) {
 	        /* TODO: Software implementation here */
@@ -1818,7 +1818,7 @@ sha2_init(DIGEST_CONTEXT *ctx)
 	}
 }
 
-sha3_init(DIGEST_CONTEXT *ctx)
+void sha3_init(DIGEST_CONTEXT *ctx)
 {
 	if (token_specific.t_sha3_init == NULL) {
 		/* TODO: Software implementation here */
@@ -1831,7 +1831,7 @@ sha3_init(DIGEST_CONTEXT *ctx)
 	}
 }
 
-sha5_init(DIGEST_CONTEXT * ctx)
+void sha5_init(DIGEST_CONTEXT * ctx)
 {
 	if (token_specific.t_sha5_init == NULL) {
 		/* TODO: Software implementation here */
openSUSE Build Service is sponsored by