提交 f3f316f1 编写于 作者: R Richard Levitte

If the functions get_dh*() are declared static, they should be defined the same way

上级 99b1aaf2
...@@ -1278,7 +1278,7 @@ static void free_tmp_rsa(void) ...@@ -1278,7 +1278,7 @@ static void free_tmp_rsa(void)
* $ openssl dhparam -C -noout -dsaparam 1024 * $ openssl dhparam -C -noout -dsaparam 1024
* (The third function has been renamed to avoid name conflicts.) * (The third function has been renamed to avoid name conflicts.)
*/ */
DH *get_dh512() static DH *get_dh512()
{ {
static unsigned char dh512_p[]={ static unsigned char dh512_p[]={
0xCB,0xC8,0xE1,0x86,0xD0,0x1F,0x94,0x17,0xA6,0x99,0xF0,0xC6, 0xCB,0xC8,0xE1,0x86,0xD0,0x1F,0x94,0x17,0xA6,0x99,0xF0,0xC6,
...@@ -1301,7 +1301,7 @@ DH *get_dh512() ...@@ -1301,7 +1301,7 @@ DH *get_dh512()
return(dh); return(dh);
} }
DH *get_dh1024() static DH *get_dh1024()
{ {
static unsigned char dh1024_p[]={ static unsigned char dh1024_p[]={
0xF8,0x81,0x89,0x7D,0x14,0x24,0xC5,0xD1,0xE6,0xF7,0xBF,0x3A, 0xF8,0x81,0x89,0x7D,0x14,0x24,0xC5,0xD1,0xE6,0xF7,0xBF,0x3A,
...@@ -1329,7 +1329,7 @@ DH *get_dh1024() ...@@ -1329,7 +1329,7 @@ DH *get_dh1024()
return(dh); return(dh);
} }
DH *get_dh1024dsa() static DH *get_dh1024dsa()
{ {
static unsigned char dh1024_p[]={ static unsigned char dh1024_p[]={
0xC8,0x00,0xF7,0x08,0x07,0x89,0x4D,0x90,0x53,0xF3,0xD5,0x00, 0xC8,0x00,0xF7,0x08,0x07,0x89,0x4D,0x90,0x53,0xF3,0xD5,0x00,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册