comparison common/binverify.c @ 591:26a18e3c3db4

Cleanups and coding style.
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 28 May 2014 07:56:21 +0000
parents c93730ef2a3a
children facb13c578f1
comparison
equal deleted inserted replaced
590:c93730ef2a3a 591:26a18e3c3db4
48 { 48 {
49 ERRORPRINTF ("Invalid parameters\n"); 49 ERRORPRINTF ("Invalid parameters\n");
50 return VerifyUnknownError; 50 return VerifyUnknownError;
51 } 51 }
52 52
53 filenameW = utf8_to_wchar(filename, strnlen(filename, MAX_PATH)); 53 filenameW = utf8_to_wchar(filename, name_len);
54 54
55 result = CryptQueryObject (CERT_QUERY_OBJECT_FILE, 55 result = CryptQueryObject (CERT_QUERY_OBJECT_FILE,
56 filenameW, 56 filenameW,
57 CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED_EMBED, 57 CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED_EMBED,
58 CERT_QUERY_FORMAT_FLAG_BINARY, 58 CERT_QUERY_FORMAT_FLAG_BINARY,

http://wald.intevation.org/projects/trustbridge/