diff --git a/p2p/base/dtls_transport_internal.h b/p2p/base/dtls_transport_internal.h index bd4579028c..ff71196f34 100644 --- a/p2p/base/dtls_transport_internal.h +++ b/p2p/base/dtls_transport_internal.h @@ -34,15 +34,17 @@ namespace cricket { enum DtlsTransportState { // Haven't started negotiating. - DTLS_TRANSPORT_NEW = 0, + DTLS_TRANSPORT_NEW = static_cast(webrtc::DtlsTransportState::kNew), // Have started negotiating. - DTLS_TRANSPORT_CONNECTING, + DTLS_TRANSPORT_CONNECTING = + static_cast(webrtc::DtlsTransportState::kConnecting), // Negotiated, and has a secure connection. - DTLS_TRANSPORT_CONNECTED, + DTLS_TRANSPORT_CONNECTED = + static_cast(webrtc::DtlsTransportState::kConnected), // Transport is closed. - DTLS_TRANSPORT_CLOSED, + DTLS_TRANSPORT_CLOSED = static_cast(webrtc::DtlsTransportState::kClosed), // Failed due to some error in the handshake process. - DTLS_TRANSPORT_FAILED, + DTLS_TRANSPORT_FAILED = static_cast(webrtc::DtlsTransportState::kFailed), }; webrtc::DtlsTransportState ConvertDtlsTransportState(