Example #1
0
auth1_t *
auth1_new(void)
{
  auth1_t *val = trunnel_calloc(1, sizeof(auth1_t));
  if (NULL == val)
    return NULL;
  return val;
}
Example #2
0
trn_cell_introduce_ack_t *
trn_cell_introduce_ack_new(void)
{
  trn_cell_introduce_ack_t *val = trunnel_calloc(1, sizeof(trn_cell_introduce_ack_t));
  if (NULL == val)
    return NULL;
  return val;
}
Example #3
0
certs_cell_cert_t *
certs_cell_cert_new(void)
{
  certs_cell_cert_t *val = trunnel_calloc(1, sizeof(certs_cell_cert_t));
  if (NULL == val)
    return NULL;
  return val;
}
Example #4
0
rsa_ed_crosscert_t *
rsa_ed_crosscert_new(void)
{
  rsa_ed_crosscert_t *val = trunnel_calloc(1, sizeof(rsa_ed_crosscert_t));
  if (NULL == val)
    return NULL;
  return val;
}
Example #5
0
auth_challenge_cell_t *
auth_challenge_cell_new(void)
{
  auth_challenge_cell_t *val = trunnel_calloc(1, sizeof(auth_challenge_cell_t));
  if (NULL == val)
    return NULL;
  return val;
}
Example #6
0
trn_cell_rendezvous1_t *
trn_cell_rendezvous1_new(void)
{
  trn_cell_rendezvous1_t *val = trunnel_calloc(1, sizeof(trn_cell_rendezvous1_t));
  if (NULL == val)
    return NULL;
  return val;
}
Example #7
0
ed25519_cert_extension_t *
ed25519_cert_extension_new(void)
{
  ed25519_cert_extension_t *val = trunnel_calloc(1, sizeof(ed25519_cert_extension_t));
  if (NULL == val)
    return NULL;
  return val;
}
Example #8
0
trn_cell_introduce_encrypted_t *
trn_cell_introduce_encrypted_new(void)
{
  trn_cell_introduce_encrypted_t *val = trunnel_calloc(1, sizeof(trn_cell_introduce_encrypted_t));
  if (NULL == val)
    return NULL;
  val->onion_key_type = 1;
  return val;
}
Example #9
0
ed25519_cert_t *
ed25519_cert_new(void)
{
  ed25519_cert_t *val = trunnel_calloc(1, sizeof(ed25519_cert_t));
  if (NULL == val)
    return NULL;
  val->version = 1;
  return val;
}
Example #10
0
File: pwbox.c Project: Zensin/tor
pwbox_encoded_t *
pwbox_encoded_new(void)
{
  pwbox_encoded_t *val = trunnel_calloc(1, sizeof(pwbox_encoded_t));
  if (NULL == val)
    return NULL;
  val->fixedbytes0 = PWBOX0_CONST0;
  val->fixedbytes1 = PWBOX0_CONST1;
  return val;
}