comparison dh_groups.c @ 1733:d529a52b2f7c coverity coverity

merge coverity from main
author Matt Johnston <matt@ucc.asn.au>
date Fri, 26 Jun 2020 21:07:34 +0800
parents ee6ccc2ecc47
children
comparison
equal deleted inserted replaced
1643:b59623a64678 1733:d529a52b2f7c
1 #include "options.h" 1 #include "options.h"
2 #include "dh_groups.h" 2 #include "dh_groups.h"
3
4 #if DROPBEAR_NORMAL_DH
3 5
4 #if DROPBEAR_DH_GROUP1 6 #if DROPBEAR_DH_GROUP1
5 /* diffie-hellman-group1-sha1 value for p */ 7 /* diffie-hellman-group1-sha1 value for p */
6 const unsigned char dh_p_1[DH_P_1_LEN] = { 8 const unsigned char dh_p_1[DH_P_1_LEN] = {
7 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC9, 0x0F, 0xDA, 0xA2, 9 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC9, 0x0F, 0xDA, 0xA2,
90 #endif /* DROPBEAR_DH_GROUP16 */ 92 #endif /* DROPBEAR_DH_GROUP16 */
91 93
92 /* Same for all groups */ 94 /* Same for all groups */
93 const int DH_G_VAL = 2; 95 const int DH_G_VAL = 2;
94 96
97 #endif /* DROPBEAR_NORMAL_DH */