Fixed issues with creating cisco cert.

FossilOrigin-Name: 16ebea6ee7650a6f9f11cb31fc94683c1e2eb57a0762b37613599dcac28ae14d
This commit is contained in:
7u83@mail.ru
2016-03-01 08:31:16 +00:00
parent dde5af6ffc
commit 85fa7955e1
3 changed files with 10 additions and 4 deletions

View File

@ -190,6 +190,9 @@ static int wtpman_establish_dtls(void *arg)
/* try to accept the connection */
if (!dtls_accept(wtpman->conn)) {
cw_dbg(DBG_DTLS, "Error establishing DTLS session with %s", CLIENT_IP);
return 0;
}
@ -198,6 +201,7 @@ static int wtpman_establish_dtls(void *arg)
dtls_get_cipher(wtpman->conn));
/* DTLS handshake done */
/*
int cert_len;
struct dtls_ssl_cert cert;
@ -206,9 +210,11 @@ static int wtpman_establish_dtls(void *arg)
cert = dtls_get_peers_cert(wtpman->conn, 0);
// printf("Have Peers Cert: %p, %d\n", cert.data, cert.size);
// fwrite(cert.data, 1, cert.size, f);
printf("Have Peers Cert: %p, %d\n", cert.data, cert.size);
fwrite(cert.data, 1, cert.size, f);
fclose(f);
*/
return 1;