mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 14:40:51 +01:00
Fix compilation.
This commit is contained in:
parent
c35c43d7d9
commit
d88046a80d
2 changed files with 3 additions and 15 deletions
|
@ -834,20 +834,6 @@ desc_encode_v3(const hs_descriptor_t *desc, char **encoded_out)
|
|||
|
||||
/* === DECODING === */
|
||||
|
||||
/* XXX: Stub until this function is upstream. */
|
||||
static int
|
||||
rsa_ed25519_crosscert_check(const uint8_t *crosscert,
|
||||
const size_t crosscert_len,
|
||||
const crypto_pk_t *rsa_id_key,
|
||||
const ed25519_public_key_t *master_key)
|
||||
{
|
||||
(void) crosscert;
|
||||
(void) crosscert_len;
|
||||
(void) rsa_id_key;
|
||||
(void) master_key;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Given an encoded string of the link specifiers, return a newly allocated
|
||||
* list of decoded link specifiers. Return NULL on error. */
|
||||
STATIC smartlist_t *
|
||||
|
@ -1304,7 +1290,8 @@ decode_introduction_point(const hs_descriptor_t *desc, const char *start)
|
|||
}
|
||||
if (rsa_ed25519_crosscert_check((const uint8_t *) tok->object_body,
|
||||
tok->object_size, ip->enc_key.legacy,
|
||||
&desc->plaintext_data.signing_key_cert->signing_key)) {
|
||||
&desc->plaintext_data.signing_key_cert->signing_key,
|
||||
approx_time()-86400)) {
|
||||
log_warn(LD_REND, "Unable to cross certify the introduction point "
|
||||
"legacy encryption key.");
|
||||
goto err;
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "or.h"
|
||||
#include "address.h"
|
||||
#include "container.h"
|
||||
#include "crypto.h"
|
||||
|
|
Loading…
Add table
Reference in a new issue