comparison sencrypt.c @ 18:07f525330bc7

Mark fallthrough case
author Guido Berhoerster <guido+sencrypt@berhoerster.name>
date Wed, 31 Jul 2019 09:58:53 +0200
parents d9c4bdc004d2
children c45f17f58de1
comparison
equal deleted inserted replaced
17:b7309b030e8d 18:07f525330bc7
121 121
122 if (strcmp(algo_name, "aes") == 0) { 122 if (strcmp(algo_name, "aes") == 0) {
123 switch (key_len) { 123 switch (key_len) {
124 case 0: 124 case 0:
125 key_len = 16; 125 key_len = 16;
126 /* FALLTHROUGH */
126 case 16: 127 case 16:
127 cipher = EVP_aes_128_cbc(); 128 cipher = EVP_aes_128_cbc();
128 break; 129 break;
129 case 24: 130 case 24:
130 cipher = EVP_aes_192_cbc(); 131 cipher = EVP_aes_192_cbc();