1
- // $Id: signmanifest.cpp,v 1.4 2025/04/22 17:55:08 cvsuser Exp $
1
+ // $Id: signmanifest.cpp,v 1.5 2025/04/23 11: 17:53 cvsuser Exp $
2
2
//
3
3
// AutoUpdater: Manifest generation tool.
4
4
//
@@ -238,8 +238,8 @@ SignManifestEd(const char *filename, const char *version, const char *url,
238
238
#endif
239
239
strftime (pubDate, sizeof (pubDate), " %a, %d %b %Y %H:%M:%S +0000" , &pubtime);
240
240
241
- char url [1024 ] = {0 };
242
- ReplaceString (url, " %%" , basename, url , sizeof (url ));
241
+ char t_url [1024 ] = {0 };
242
+ ReplaceString (url, " %%" , basename, t_url , sizeof (t_url ));
243
243
244
244
std::cout
245
245
<< " \n "
@@ -248,7 +248,7 @@ SignManifestEd(const char *filename, const char *version, const char *url,
248
248
<< " \t <description></description>\n "
249
249
<< " \t <published>" << now << " </published>\n "
250
250
<< " \t <pubDate>" << pubDate << " </pubDate>\n "
251
- << " \t <enclosure url=\" " << url << " \"\n "
251
+ << " \t <enclosure url=\" " << t_url << " \"\n "
252
252
<< " \t\t os=\" windows\"\n "
253
253
<< " \t\t name=\" " << basename << " \"\n "
254
254
<< " \t\t version=\" " << version << " \"\n "
@@ -353,9 +353,9 @@ Sign(const File& file, const struct SignKeyPair *key)
353
353
354
354
// failure
355
355
{
356
- uint8_t t_signature[sizeof (signature)] = { 0 };
356
+ uint8_t t_signature[sizeof (signature)] = {0 };
357
357
memcpy (t_signature, signature, sizeof (signature));
358
- t_signature[1 ] | = 1 ;
358
+ t_signature[1 ] ^ = 1 ;
359
359
assert (1 != ed25519_verify (t_signature, file.fileBuffer , file.fileSize , key->public_key ));
360
360
}
361
361
assert (1 != ed25519_verify (signature, file.fileBuffer , file.fileSize - 1 , key->public_key ));
0 commit comments