Back to index

nagios-nrpe  2.13
Functions
dh.h File Reference
#include <openssl/dh.h>

Go to the source code of this file.

Functions

DH * get_dh512 ()

Function Documentation

DH* get_dh512 ( )

Definition at line 4 of file dh.h.

       {
       static unsigned char dh512_p[]={
              0xA4,0x56,0x47,0x7F,0x90,0xF0,0xDE,0xFE,0x73,0x1A,0xBD,0x3E,
              0xA9,0xF5,0x69,0x46,0x29,0x0B,0x47,0x55,0x8C,0xE8,0xF3,0xDF,
              0xF6,0x1B,0xC5,0x29,0x1B,0x81,0x97,0x3E,0xE4,0xD9,0xC8,0x2B,
              0xBB,0x2B,0x7A,0x37,0xE1,0x18,0xDF,0xEC,0x6B,0xEC,0x04,0x77,
              0x6D,0x51,0x3C,0x7C,0xB7,0x81,0xBD,0x7F,0xC9,0x5A,0x04,0xB4,
              0xA4,0x3E,0x8B,0x5B,
              };
       static unsigned char dh512_g[]={
              0x02,
              };
       DH *dh;

       if ((dh=DH_new()) == NULL) return(NULL);
       dh->p=BN_bin2bn(dh512_p,sizeof(dh512_p),NULL);
       dh->g=BN_bin2bn(dh512_g,sizeof(dh512_g),NULL);
       if ((dh->p == NULL) || (dh->g == NULL))
              { DH_free(dh); return(NULL); }
       return(dh);
       }

Here is the caller graph for this function: