diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..e69de29 diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index c11135d..a7492dc 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ terminal, will display the two bytes of data starting with byte 6. Building mfterm --------------- -Standard: ./configure; make; make install +Standard: ./autogen.sh; ./configure; make; make install See INSTALL file for details. diff --git a/mac.c b/mac.c index 7b57d9e..9e398e5 100644 --- a/mac.c +++ b/mac.c @@ -45,13 +45,19 @@ int compute_mac(const unsigned char* input, // Generate a key schedule. Don't be picky, allow bad keys. DES_key_schedule schedule; + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wdeprecated-declarations" DES_set_key_unchecked(&des_key, &schedule); + #pragma GCC diagnostic pop // IV is all zeroes unsigned char ivec[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; // Compute the DES in CBC + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wdeprecated-declarations" DES_ncbc_encrypt(padded_input, output, length, &schedule, &ivec, 1); + #pragma GCC diagnostic pop // Move up and truncate (we only want 8 bytes) for (int i = 0; i < 8; ++i) diff --git a/mfterm.c b/mfterm.c index 1baedf3..756487b 100644 --- a/mfterm.c +++ b/mfterm.c @@ -260,7 +260,10 @@ char* completion_sub_cmd_generator(const char* text, int state) { // Extract command and sub-command char buff[128]; + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstringop-truncation" strncpy(buff, name, sizeof(buff)); + #pragma GCC diagnostic pop char* cmd = strtok(buff, " "); char* sub = strtok(NULL, " ");