Logo Search packages:      
Sourcecode: nagios-nrpe version File versions  Download package

dh.h

#ifndef HEADER_DH_H
#include <openssl/dh.h>
#endif
DH *get_dh512()
      {
      static unsigned char dh512_p[]={
            0xEC,0xC9,0x9D,0xB4,0x77,0x0B,0x31,0xC3,0xEF,0xE7,0xEC,0xEE,
            0x32,0xA5,0xED,0x4E,0x09,0xD3,0x78,0xDA,0xB2,0x62,0x82,0xA5,
            0xF9,0xCE,0x6E,0x65,0x23,0x71,0x18,0x9B,0x78,0x41,0x37,0xA1,
            0x6C,0xCB,0x2F,0xEF,0x2A,0x41,0x21,0x76,0x64,0x55,0xF7,0xFB,
            0x6B,0xB5,0x98,0xB6,0x10,0x20,0xB8,0x29,0x2C,0xD4,0x4C,0x49,
            0x58,0xB7,0x21,0x73,
            };
      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);
      }

Generated by  Doxygen 1.6.0   Back to index