[ESRG-CVS] sfesrg/esrgpcpj/gfsw gfsw.c,1.29,1.30
Brought to you by:
dtashley
|
From: David T. A. <dta...@us...> - 2009-11-29 02:16:14
|
Update of /cvsroot/esrg/sfesrg/esrgpcpj/gfsw In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv31511/gfsw Modified Files: gfsw.c Log Message: Passed final review. Index: gfsw.c =================================================================== RCS file: /cvsroot/esrg/sfesrg/esrgpcpj/gfsw/gfsw.c,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** gfsw.c 28 Nov 2009 18:17:03 -0000 1.29 --- gfsw.c 29 Nov 2009 02:16:04 -0000 1.30 *************** *** 269,279 **** hwnd = CreateWindowEx ( WS_EX_TOPMOST, ! GFSW_szAppName, // window class name ! TEXT ("GUI File Signature Widget " BUILD_CONFIG_RELEASE_VERSION), // window caption WS_OVERLAPPEDWINDOW, // window style CW_USEDEFAULT, // initial x position CW_USEDEFAULT, // initial y position initial_width, // initial x size ! initial_height, // initial y size NULL, // parent window handle hmenu, // window menu handle --- 269,279 ---- hwnd = CreateWindowEx ( WS_EX_TOPMOST, ! GFSW_szAppName, // window class name ! TEXT ("FileHash v0.1"), // window caption WS_OVERLAPPEDWINDOW, // window style CW_USEDEFAULT, // initial x position CW_USEDEFAULT, // initial y position initial_width, // initial x size ! initial_height, // initial y size NULL, // parent window handle hmenu, // window menu handle *************** *** 583,587 **** NULL) ; // creation parameters //Print initial usage instructions. ! SetWindowText(te_wind, "To calculate file sizes, CRC-32s, and [binary] MD-5 sums, just " "drag and drop files into this box (from Windows Explorer " "or a similar application), or use the FILE->OPEN " --- 583,588 ---- NULL) ; // creation parameters //Print initial usage instructions. ! SetWindowText(te_wind, "To calculate CRC-32 cyclic redundancy codes, MD-5 message digests, " ! "and SHA-512 message digests, just " "drag and drop files into this box (from Windows Explorer " "or a similar application), or use the FILE->OPEN " *************** *** 835,842 **** { char *msg; ! char *first_line = "GFSW (GUI file signature widget)\n\n"; char *second_line = "[Built on " __DATE__ " at " __TIME__ "]\n\n"; ! msg = malloc(strlen(first_line)+strlen(second_line)+strlen(BUILD_CONFIG_HelpAboutMsgIdString)+1); assert(msg != NULL); --- 836,844 ---- { char *msg; ! char *first_line = "FileHash (GUI file message digest widget)\n\n"; char *second_line = "[Built on " __DATE__ " at " __TIME__ "]\n\n"; + char *third_line = "Please contact Dave Ashley (DA...@GM...) with any issues."; ! msg = malloc(strlen(first_line)+strlen(second_line)+strlen(third_line)+1); assert(msg != NULL); *************** *** 844,850 **** if (msg) { ! strcpy_s(msg, strlen(first_line)+strlen(second_line)+strlen(BUILD_CONFIG_HelpAboutMsgIdString)+1, first_line); ! strcat_s(msg, strlen(first_line)+strlen(second_line)+strlen(BUILD_CONFIG_HelpAboutMsgIdString)+1, second_line); ! strcat_s(msg, strlen(first_line)+strlen(second_line)+strlen(BUILD_CONFIG_HelpAboutMsgIdString)+1, BUILD_CONFIG_HelpAboutMsgIdString); MessageBox (hwnd, msg, --- 846,852 ---- if (msg) { ! strcpy_s(msg, strlen(first_line)+strlen(second_line)+strlen(third_line)+1, first_line); ! strcat_s(msg, strlen(first_line)+strlen(second_line)+strlen(third_line)+1, second_line); ! strcat_s(msg, strlen(first_line)+strlen(second_line)+strlen(third_line)+1, third_line); MessageBox (hwnd, msg, *************** *** 858,887 **** { MessageBox (hwnd, ! "This widget provides information useful in signaturing \n" ! "files: that is, forming hash functions of files that\n" ! "are unlikely to have the same value if the files are\n" ! "different.\n" ! "\n" ! "The CRC-32 is very reliable, and will reliably guard\n" ! "against file download errors. However, a CRC-32 is\n" ! "vulnerable to deliberate tampering: in general, a file\n" ! "may be easily modified to exhibit a given CRC-32.\n" ! "Thus, the CRC-32 is reliable protection against trans-\n" ! "mission errors, but no protection against digital\n" ! "forgery.\n" ! "\n" ! "The MD-5 message digest function is designed to provide \n" ! "strong protection against digital forgery. That is,\n" ! "there is no known [computationally tractable] way to\n" ! "modify a file to exhibit a given MD-5. The MD-5 message \n" ! "digest function is very commonly used in Unix systems\n" ! "(the \"md5sum\" program). This utility always calculates\n" ! "the MD-5 sum in binary mode (\"md5sum -b <filename>\" \n" ! "on a Unix system). For a file which is byte-for-byte the\n" ! "same, this utility should calculate the same MD-5 as\n" ! "\"md5sum -b <filename>\" will on a Unix system. Thus,\n" ! "this utility can be used to check the integrity of\n" ! "transfers from Unix systems. This utility will not\n" ! "calculate text-mode MD-5 functions.", GFSW_szAppName, MB_OK|MB_ICONINFORMATION) ; --- 860,866 ---- { MessageBox (hwnd, ! "This program was written by Dave Ashley\n" ! "(DA...@GM...). Please feel free\n" ! "to correspond by e-mail.", GFSW_szAppName, MB_OK|MB_ICONINFORMATION) ; *************** *** 1282,1285 **** --- 1261,1267 ---- /****************************************************************************** ** $Log$ + ** Revision 1.30 2009/11/29 02:16:04 dtashley + ** Passed final review. + ** ** Revision 1.29 2009/11/28 18:17:03 dtashley ** Development edits. *************** *** 1381,1385 **** ******************************************************************************* ** End of GFSW.C. */ - - - --- 1363,1364 ---- |