소스 검색

we should handle the case where the client has no cert, for
backwards compatibility with jap clients.


svn:r3466

Roger Dingledine 20 년 전
부모
커밋
e432d2ceea
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/or/connection_or.c

+ 1 - 0
src/or/connection_or.c

@@ -346,6 +346,7 @@ connection_tls_finish_handshake(connection_t *conn) {
   log_fn(LOG_DEBUG,"tls handshake done. verifying.");
   log_fn(LOG_DEBUG,"tls handshake done. verifying.");
   if (! tor_tls_peer_has_cert(conn->tls)) {
   if (! tor_tls_peer_has_cert(conn->tls)) {
     log_fn(LOG_WARN,"Peer didn't send a cert! Closing.");
     log_fn(LOG_WARN,"Peer didn't send a cert! Closing.");
+    /* XXX we should handle this case rather than just closing. */
     return -1;
     return -1;
   }
   }
   if (tor_tls_get_peer_cert_nickname(conn->tls, nickname, sizeof(nickname))) {
   if (tor_tls_get_peer_cert_nickname(conn->tls, nickname, sizeof(nickname))) {