コード例 #1
0
ファイル: cell_introduce1.c プロジェクト: Samdney/tor
int
trn_cell_introduce_encrypted_set0_nspecs(trn_cell_introduce_encrypted_t *inp, size_t idx, struct link_specifier_st * elt)
{
  TRUNNEL_DYNARRAY_SET(&inp->nspecs, idx, elt);
  return 0;
}
コード例 #2
0
ファイル: cell_introduce1.c プロジェクト: Samdney/tor
int
trn_cell_introduce1_set_encrypted(trn_cell_introduce1_t *inp, size_t idx, uint8_t elt)
{
  TRUNNEL_DYNARRAY_SET(&inp->encrypted, idx, elt);
  return 0;
}
コード例 #3
0
ファイル: cell_introduce1.c プロジェクト: Samdney/tor
int
trn_cell_introduce_encrypted_set_onion_key(trn_cell_introduce_encrypted_t *inp, size_t idx, uint8_t elt)
{
  TRUNNEL_DYNARRAY_SET(&inp->onion_key, idx, elt);
  return 0;
}
コード例 #4
0
ファイル: link_handshake.c プロジェクト: CFFei/TorAnonPerf
int
rsa_ed_crosscert_set_sig(rsa_ed_crosscert_t *inp, size_t idx, uint8_t elt)
{
  TRUNNEL_DYNARRAY_SET(&inp->sig, idx, elt);
  return 0;
}
コード例 #5
0
ファイル: cell_introduce1.c プロジェクト: Samdney/tor
int
trn_cell_introduce1_set_auth_key(trn_cell_introduce1_t *inp, size_t idx, uint8_t elt)
{
  TRUNNEL_DYNARRAY_SET(&inp->auth_key, idx, elt);
  return 0;
}
コード例 #6
0
ファイル: link_handshake.c プロジェクト: CFFei/TorAnonPerf
int
certs_cell_set0_certs(certs_cell_t *inp, size_t idx, struct certs_cell_cert_st * elt)
{
  TRUNNEL_DYNARRAY_SET(&inp->certs, idx, elt);
  return 0;
}
コード例 #7
0
ファイル: link_handshake.c プロジェクト: CFFei/TorAnonPerf
int
certs_cell_cert_set_body(certs_cell_cert_t *inp, size_t idx, uint8_t elt)
{
  TRUNNEL_DYNARRAY_SET(&inp->body, idx, elt);
  return 0;
}
コード例 #8
0
ファイル: link_handshake.c プロジェクト: CFFei/TorAnonPerf
int
auth_challenge_cell_set_methods(auth_challenge_cell_t *inp, size_t idx, uint16_t elt)
{
  TRUNNEL_DYNARRAY_SET(&inp->methods, idx, elt);
  return 0;
}
コード例 #9
0
ファイル: link_handshake.c プロジェクト: CFFei/TorAnonPerf
int
auth1_set_sig(auth1_t *inp, size_t idx, uint8_t elt)
{
  TRUNNEL_DYNARRAY_SET(&inp->sig, idx, elt);
  return 0;
}
コード例 #10
0
ファイル: cell_rendezvous.c プロジェクト: Samdney/tor
int
trn_cell_rendezvous1_set_handshake_info(trn_cell_rendezvous1_t *inp, size_t idx, uint8_t elt)
{
  TRUNNEL_DYNARRAY_SET(&inp->handshake_info, idx, elt);
  return 0;
}
コード例 #11
0
ファイル: pwbox.c プロジェクト: Zensin/tor
int
pwbox_encoded_set_data(pwbox_encoded_t *inp, size_t idx, uint8_t elt)
{
  TRUNNEL_DYNARRAY_SET(&inp->data, idx, elt);
  return 0;
}
コード例 #12
0
ファイル: pwbox.c プロジェクト: Zensin/tor
int
pwbox_encoded_set_skey_header(pwbox_encoded_t *inp, size_t idx, uint8_t elt)
{
  TRUNNEL_DYNARRAY_SET(&inp->skey_header, idx, elt);
  return 0;
}
コード例 #13
0
ファイル: ed25519_cert.c プロジェクト: CFFei/TorAnonPerf
int
ed25519_cert_set0_ext(ed25519_cert_t *inp, size_t idx, struct ed25519_cert_extension_st * elt)
{
  TRUNNEL_DYNARRAY_SET(&inp->ext, idx, elt);
  return 0;
}
コード例 #14
0
ファイル: ed25519_cert.c プロジェクト: CFFei/TorAnonPerf
int
ed25519_cert_extension_set_un_unparsed(ed25519_cert_extension_t *inp, size_t idx, uint8_t elt)
{
  TRUNNEL_DYNARRAY_SET(&inp->un_unparsed, idx, elt);
  return 0;
}