gg-crypto-ucryptolib.c
int crypto_set_remote_key(GG_crypt *ggc, const unsigned char *remote_pubkey,
                          size_t len) {

  if (len != ggc->remote_key_len) {
    DEBUG(1, "Remote DH key has the wrong size %zi\n", len);
    return -1;
  }

  memcpy(ggc->remote_key, remote_pubkey, len);

  return 0;
}
/* Set remote DH key */
/* return 0 on success -1 on failure */
Set remote DH key
return 0 on success -1 on failure
Set remote DH key return 0 on success - 1 on failure
int crypto_set_remote_key(GG_crypt *ggc, const unsigned char *remote_pubkey,
                          size_t len) {
  if (len != ggc->remote_key_len) {
    DEBUG(1, "Remote DH key has the wrong size %zi\n", len);
    return -1;
  }
  memcpy(ggc->remote_key, remote_pubkey, len);
  return 0;
}
int crypto_set_remote_key ( GG_crypt * ggc , const unsigned char * remote_pubkey , size_t len ) { if ( len != ggc -> remote_key_len ) { DEBUG ( 1 , " \n " , len ) ; return -1 ; } memcpy ( ggc -> remote_key , remote_pubkey , len ) ; return 0 ; }
Set remote DH key
return 0 on success -1 on failure
Set remote DH key return 0 on success - 1 on failure