Browse Source

Print rejected certificates

master
Jeroen Vreeken 4 years ago
parent
commit
9c647c3ce3
2 changed files with 5 additions and 3 deletions
  1. +4
    -1
      dml_host.c
  2. +1
    -2
      dml_reflector.c

+ 4
- 1
dml_host.c View File

@ -170,7 +170,10 @@ static void rx_packet(struct dml_connection *dc, void *arg,
break;
if ((ds = dml_stream_by_id(cid))) {
if (dml_host_mime_filter(host, ds)) {
dml_crypto_cert_add_verify(cert, size, cid);
if (dml_crypto_cert_add_verify(cert, size, cid)) {
printf("Not accepting certificate for %s\n",
dml_stream_name_get(ds));
}
}
}
free(cert);


+ 1
- 2
dml_reflector.c View File

@ -44,7 +44,6 @@
#define DML_REFLECTOR_DATA_KEEPALIVE 10
uint8_t ref_id[DML_ID_SIZE];
char *mime = "audio/dml-codec2";
char *name;
char *alias;
char *description;
@ -367,7 +366,7 @@ int main(int argc, char **argv)
}
if (dml_id_gen(ref_id, DML_PACKET_DESCRIPTION_VERSION_0, bps,
mime, name, alias, description))
DML_MIME_DV_C2, name, alias, description))
return -1;
stream_dv = dml_stream_by_id_alloc(ref_id);


Loading…
Cancel
Save