Projects
OVPN-beta
ovpn
Sign Up
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 26
View file
ovpn.spec
Changed
@@ -28,7 +28,7 @@ Summary: OVPN Name: ovpn Version: 2.4.0 -Release: 5292 +Release: 5293 Group: VPN License: BSD-3-Clause URL: https://ovpn.com/
View file
ovpn_2.4.0.orig.tar.gz/VER_IID
Changed
@@ -1,1 +1,1 @@ -5292 +5293
View file
ovpn_2.4.0.orig.tar.gz/pvs-logs/pvs-tasks-client-2022_12_08__15_45_33.log
Deleted
@@ -1,8 +0,0 @@ -pvs-studio.com/en/docs/warnings/ 1 err Help: The documentation for all analyzer warnings is available here: https://pvs-studio.com/en/docs/warnings/. -client/utils/ipc/linux/IPCAppLinux.cpp 124 warn V560 A part of conditional expression is always false: !replyString. -client/utils/network/linux/NetworkControllerLinux.cpp 56 warn V576 Incorrect format. Consider checking the third actual argument of the 'sscanf' function. It's dangerous to use string specifier without width specification. Buffer overflow is possible. -client/utils/network/linux/NetworkControllerLinux.cpp 56 warn V576 Incorrect format. Consider checking the fourth actual argument of the 'sscanf' function. A pointer to the unsigned long type is expected. -client/utils/network/linux/NetworkControllerLinux.cpp 56 warn V576 Incorrect format. Consider checking the fifth actual argument of the 'sscanf' function. A pointer to the unsigned long type is expected. -client/utils/network/linux/NetworkControllerLinux.cpp 66 warn V547 Expression 'file' is always true. -client/utils/network/linux/NetworkControllerLinux.cpp 99 err V547 Expression 'family == 2' is always true. -client/utils/sentrysdk.cpp 1 err V008 Unable to start the analysis on this file.
View file
ovpn_2.4.0.orig.tar.gz/pvs-logs/pvs-tasks-client-2022_12_08__16_48_28.log
Added
@@ -0,0 +1,8 @@ +pvs-studio.com/en/docs/warnings/ 1 err Help: The documentation for all analyzer warnings is available here: https://pvs-studio.com/en/docs/warnings/. +client/utils/network/linux/NetworkControllerLinux.cpp 56 warn V576 Incorrect format. Consider checking the third actual argument of the 'sscanf' function. It's dangerous to use string specifier without width specification. Buffer overflow is possible. +client/utils/network/linux/NetworkControllerLinux.cpp 56 warn V576 Incorrect format. Consider checking the fourth actual argument of the 'sscanf' function. A pointer to the unsigned long type is expected. +client/utils/network/linux/NetworkControllerLinux.cpp 56 warn V576 Incorrect format. Consider checking the fifth actual argument of the 'sscanf' function. A pointer to the unsigned long type is expected. +client/utils/network/linux/NetworkControllerLinux.cpp 66 warn V547 Expression 'file' is always true. +client/utils/network/linux/NetworkControllerLinux.cpp 99 err V547 Expression 'family == 2' is always true. +client/utils/sentrysdk.cpp 1 err V008 Unable to start the analysis on this file. +client/utils/ipc/linux/IPCAppLinux.cpp 124 warn V560 A part of conditional expression is always false: !replyString.
View file
ovpn_2.4.0.orig.tar.gz/pvs-logs/pvs-tasks-ovpn-daemon-2022_12_08__15_45_51.log
Deleted
@@ -1,9 +0,0 @@ -pvs-studio.com/en/docs/warnings/ 1 err Help: The documentation for all analyzer warnings is available here: https://pvs-studio.com/en/docs/warnings/. -ovpn-daemon/commands/setdns.cpp 1 err V008 Unable to start the analysis on this file. -ovpn-daemon/commands/killovpn.cpp 1 err V008 Unable to start the analysis on this file. -ovpn-daemon/commands/command.cpp 1 err V008 Unable to start the analysis on this file. -ovpn-daemon/commands/firewall.cpp 1 err V008 Unable to start the analysis on this file. -ovpn-daemon/commands/commands.cpp 1 err V008 Unable to start the analysis on this file. -ovpn-daemon/commands/logoff.cpp 1 err V008 Unable to start the analysis on this file. -ovpn-daemon/commands/stopovpn.cpp 1 err V008 Unable to start the analysis on this file. -ovpn-daemon/commands/startovpn.cpp 1 err V008 Unable to start the analysis on this file.
View file
ovpn_2.4.0.orig.tar.gz/pvs-logs/pvs-tasks-ovpn-daemon-2022_12_08__16_48_47.log
Added
@@ -0,0 +1,9 @@ +pvs-studio.com/en/docs/warnings/ 1 err Help: The documentation for all analyzer warnings is available here: https://pvs-studio.com/en/docs/warnings/. +ovpn-daemon/commands/setdns.cpp 1 err V008 Unable to start the analysis on this file. +ovpn-daemon/commands/startovpn.cpp 1 err V008 Unable to start the analysis on this file. +ovpn-daemon/commands/commands.cpp 1 err V008 Unable to start the analysis on this file. +ovpn-daemon/commands/command.cpp 1 err V008 Unable to start the analysis on this file. +ovpn-daemon/commands/logoff.cpp 1 err V008 Unable to start the analysis on this file. +ovpn-daemon/commands/stopovpn.cpp 1 err V008 Unable to start the analysis on this file. +ovpn-daemon/commands/firewall.cpp 1 err V008 Unable to start the analysis on this file. +ovpn-daemon/commands/killovpn.cpp 1 err V008 Unable to start the analysis on this file.
View file
ovpn_2.4.0.orig.tar.gz/pvs-logs/pvs.log
Changed
@@ -15,10 +15,10 @@ # d99cf3ba-6fcd-43f9-9260-1179fa3a9bed r-vUVbw<6y|D3 h22y|D3xy|D3(L8Pu(j-o2U9wah>>ua(9h-2_=(Mokv~{U-(S(ouUP(_u=so8kw'2-u>o(=a'(8vk>w_UuP8>('8PPU>_=(=uo_>=}'kky|D3uaa8ay|D3rSSXy|D3g>U92uco8c=oUaocoLucU>U2f=-=c8>coL-=c -2u}y|D3 U2=uy|D3Sy|D3y|D3y|D3y|D3xy|D3 -r-vUVbw<6y|D3 h22y|D3xy|D3(L8Pu(j-o2U9wah>>ua(9h-2_=(Mokv~{U-(S(ouUP(_u=so8kw'2-u>o(=a'(8vk>w_UuP8>('8PPU>_=(s-228vk>}'kky|D3uaa8ay|D3rSSXy|D3g>U92uco8c=oUaocoLucU>U2f=-=c8>coL-=c -2u}y|D3 U2=uy|D3Sy|D3y|D3y|D3y|D3xy|D3 -r-vUVbw<6y|D3 h22y|D3xy|D3(L8Pu(j-o2U9wah>>ua(9h-2_=(Mokv~{U-(S(ouUP(_u=so8kw'2-u>o(=a'(8vk>w_UuP8>('8PPU>_=('8PPU>_}'kky|D3uaa8ay|D3rSSXy|D3g>U92uco8c=oUaocoLucU>U2f=-=c8>coL-=c -2u}y|D3 U2=uy|D3Sy|D3y|D3y|D3y|D3xy|D3 -r-vUVb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D3y|D3y|D3xy|D3 r-vUVbw<6y|D3 h22y|D3xy|D3(L8Pu(j-o2U9wah>>ua(9h-2_=(Mokv~{U-(S(ouUP(_u=so8kw'2-u>o(=a'(8vk>w_UuP8>('8PPU>_=(=o8k8vk>}'kky|D3uaa8ay|D3rSSXy|D3g>U92uco8c=oUaocoLucU>U2f=-=c8>coL-=c -2u}y|D3 U2=uy|D3Sy|D3y|D3y|D3y|D3xy|D3 -r-vUVbw<6y|D3 h22y|D3xy|D3(L8Pu(j-o2U9wah>>ua(9h-2_=(Mokv~{U-(S(ouUP(_u=so8kw'2-u>o(=a'(8vk>w_UuP8>('8PPU>_=(=oUao8vk>}'kky|D3uaa8ay|D3rSSXy|D3g>U92uco8c=oUaocoLucU>U2f=-=c8>coL-=c -2u}y|D3 U2=uy|D3Sy|D3y|D3y|D3y|D3xy|D3 +r-vUVbw<6y|D3 h22y|D3xy|D3(L8Pu(j-o2U9wah>>ua(9h-2_=(Mokv~{U-(S(ouUP(_u=so8kw'2-u>o(=a'(8vk>w_UuP8>('8PPU>_=( -auU22}'kky|D3uaa8ay|D3rSSXy|D3g>U92uco8c=oUaocoLucU>U2f=-=c8>coL-=c -2u}y|D3 U2=uy|D3Sy|D3y|D3y|D3y|D3xy|D3 +r-vUVbw<6y|D3 h22y|D3xy|D3(L8Pu(j-o2U9wah>>ua(9h-2_=(Mokv~{U-(S(ouUP(_u=so8kw'2-u>o(=a'(8vk>w_UuP8>('8PPU>_=(s-228vk>}'kky|D3uaa8ay|D3rSSXy|D3g>U92uco8c=oUaocoLucU>U2f=-=c8>coL-=c -2u}y|D3 U2=uy|D3Sy|D3y|D3y|D3y|D3xy|D3
View file
ovpn_2.4.0.orig.tar.gz/scripts/logs-parsing.sh
Changed
@@ -107,7 +107,16 @@ # ----------------------------------------------------------------------------- process_log_file() { while read p; do - process_line "$p" "${2}" + + # + # Filter special cases + # + local PREPARED=$(echo "$p" | sed "s/SessionIPC\1\/SessionIPC/") + + # + # Process line + # + process_line "${PREPARED}" "${2}" done <"${1}" }
View file
ovpn_2.4.0.orig.tar.gz/src/client/ovpn/openvpn/openvpnmanager.cpp
Changed
@@ -78,7 +78,7 @@ OpenVpnManager::start() { startListeningServer(); - qDebug() << "OpenVpnManager: Listening server started"; + qDebug() << "{OpenVpnManager} Listening server started"; } //----------------------------------------------------------------------------- @@ -99,7 +99,7 @@ TemporaryFile file; file.setAutoRemove(false); if (!file.open()) { - qCritical() << "OpenVpnManager: Cannot open file for writing!"; + qCritical() << "{OpenVpnManager} Cannot open file for writing!"; return; } @@ -117,12 +117,12 @@ if (TunnelUp == state() && m_socket->isOpen() && m_socket->isWritable()) { this->sendCommand(command); } else { - qCritical() << "OpenVpnManager: onCommand: Unable to send command" << command << Qt::endl + qCritical() << "{OpenVpnManager} onCommand: Unable to send command" << command << Qt::endl << "\t\tDump socket status: Error/ErrorString/State:" << m_socket->error() << m_socket->errorString() << m_socket->state(); } } else { - qDebug() << "OpenVpnManager: onCommand: Skip command" << command + qDebug() << "{OpenVpnManager} onCommand: Skip command" << command << ": Socket or Management Interface is not ready..."; } } @@ -142,11 +142,11 @@ if (m_server->isListening()) { m_server->close(); - qDebug() << "OpenVpnManager: ShutdownTunnel: listen server closed"; + qDebug() << "{OpenVpnManager} ShutdownTunnel: listen server closed"; } if (!m_socket) { - qDebug() << "OpenVpnManager: ShutdownTunnel: Management Interface socket is null"; + qDebug() << "{OpenVpnManager} ShutdownTunnel: Management Interface socket is null"; needForcedStop = true; m_isClosed = true; setState(TunnelDown); @@ -154,24 +154,24 @@ } const auto socketState = m_socket->state(); - qDebug() << "OpenVpnManager: Attempting to shutdown tunnel, socket state" << socketState; - qDebug() << "OpenVpnManager: BEGIN"; + qDebug() << "{OpenVpnManager} Attempting to shutdown tunnel, socket state" << socketState; + qDebug() << "{OpenVpnManager} BEGIN"; if (socketState == QTcpSocket::ConnectedState) { - qDebug() << "OpenVpnManager: Send SIGTERM to openvpn"; + qDebug() << "{OpenVpnManager} Send SIGTERM to openvpn"; this->sendCommand("signal SIGTERM", true); m_socket->disconnectFromHost(); m_isClosed = true; setState(TunnelDown); - qDebug() << "OpenVpnManager: END"; + qDebug() << "{OpenVpnManager} END"; return true; } else { - qDebug() << "OpenVpnManager: Socket state was not connected"; + qDebug() << "{OpenVpnManager} Socket state was not connected"; } - qDebug() << "OpenVpnManager: END"; + qDebug() << "{OpenVpnManager} END"; return false; } @@ -180,25 +180,25 @@ bool OpenVpnManager::softwareReset(bool useSigUsr1) { if (!m_socket) { - qDebug() << "OpenVpnManager: ShutdownTunnel: Management Interface socket is null"; + qDebug() << "{OpenVpnManager} ShutdownTunnel: Management Interface socket is null"; return false; } const QAbstractSocket::SocketState socketState = m_socket->state(); - qDebug() << "OpenVpnManager: Attempting to do software reset, socket state" << socketState; + qDebug() << "{OpenVpnManager} Attempting to do software reset, socket state" << socketState; if (m_server->isListening()) { m_server->close(); - qDebug() << "OpenVpnManager: ShutdownTunnel: listen server closed"; + qDebug() << "{OpenVpnManager} ShutdownTunnel: listen server closed"; } if (socketState == QTcpSocket::ConnectedState) { - qDebug() << "OpenVpnManager: Send SIGUSR1 to openvpn"; + qDebug() << "{OpenVpnManager} Send SIGUSR1 to openvpn"; this->sendCommand(QString("signal %1").arg(useSigUsr1 ? "SIGUSR1" : "SIGHUP"), true); return true; } else { - qDebug() << "OpenVpnManager: Socket state was not connected"; + qDebug() << "{OpenVpnManager} Socket state was not connected"; } return false; } @@ -209,17 +209,17 @@ m_server->setMaxPendingConnections(1); QObject::connect(m_server, &QTcpServer::acceptError, &(QAbstractSocket::SocketError socketError) { - qDebug() << "OpenVpnManager: acceptError:" << socketError; + qDebug() << "{OpenVpnManager} acceptError:" << socketError; }); QObject::connect(m_server, &QTcpServer::newConnection, this, &() { m_isClosed = false; - qDebug() << "OpenVpnManager: New connection"; + qDebug() << "{OpenVpnManager} New connection"; m_socket = m_server->nextPendingConnection(); m_server->close(); QObject::connect(m_socket, &QTcpSocket::disconnected, &() { - // qDebug() << "OpenVpnManager: QTcpSocket::disconnected: start"; + // qDebug() << "{OpenVpnManager} QTcpSocket::disconnected: start"; auto socket = m_socket; socket->deleteLater(); @@ -227,7 +227,7 @@ }); QObject::connect(m_socket, &QTcpSocket::connected, &() { - qDebug() << "OpenVpnManager: QTcpSocket::connected:" << m_socket; + qDebug() << "{OpenVpnManager} QTcpSocket::connected:" << m_socket; }); QObject::connect(m_socket, SIGNAL(readyRead()), this, SLOT(onReadyRead())); @@ -238,10 +238,10 @@ }); if (!m_server->listen(QHostAddress(m_host), m_port)) { - qCritical() << "OpenVpnManager: Start: server listen error:" << m_host << m_port << m_server->serverError() + qCritical() << "{OpenVpnManager} Start: server listen error:" << m_host << m_port << m_server->serverError() << m_server->errorString(); } else { - qDebug() << "OpenVpnManager: Listening for incoming connection on" << m_host << m_port; + qDebug() << "{OpenVpnManager} Listening for incoming connection on" << m_host << m_port; emit listenStarted(); } } @@ -254,10 +254,10 @@ if (QString::fromStdString(data.toStdString()) == ENTER_PASSWORD) { QString password = m_passwordData + "\r\n"; qint64 sentBytes = m_socket->write(password.toUtf8()); - qDebug() << "OpenVpnManager: Sent initial data:" << ((sentBytes < 0) ? "false" : "true"); + qDebug() << "{OpenVpnManager} Sent initial data:" << ((sentBytes < 0) ? "false" : "true"); return; } - qDebug() << "OpenVpnManager: onReadyRead: readyRead was emited, but can't read line:" << m_socket->error() + qDebug() << "{OpenVpnManager} onReadyRead: readyRead was emited, but can't read line:" << m_socket->error() << m_socket->errorString(); } @@ -276,7 +276,7 @@ //----------------------------------------------------------------------------- void OpenVpnManager::onError(QAbstractSocket::SocketError socketError) { - qCritical() << "OpenVpnManager: Can't connect to management interface. Error: " << socketError; + qCritical() << "{OpenVpnManager} Can't connect to management interface. Error: " << socketError; if (m_isClosed) { return; @@ -297,32 +297,32 @@ #ifdef EXTRA_LOGGING_ENABLED auto printManagement = &line() { if (line.contains(MANAGEMENT)) { - qDebug().noquote() << "OpenVpnManager: SocketHandler: Management:" << line; + qDebug().noquote() << "{OpenVpnManager} SocketHandler: Management:" << line; } }; auto stateLogger = &line() { if (line.contains("CONNECTING")) { - qDebug() << "OpenVpnManager: SocketHandler: stateLogger: CONNECTING: OpenVPN's initial state."; + qDebug() << "{OpenVpnManager} SocketHandler: stateLogger: CONNECTING: OpenVPN's initial state."; } else if (line.contains("WAIT")) { - qDebug() << "OpenVpnManager: socketHandler: stateLogger: WAIT: (Client only) Waiting for initial response " + qDebug() << "{OpenVpnManager} socketHandler: stateLogger: WAIT: (Client only) Waiting for initial response " "from server."; } else if (line.contains("AUTH")) { - qDebug() << "OpenVpnManager: socketHandler: stateLogger: AUTH: (Client only) Authenticating with server."; + qDebug() << "{OpenVpnManager} socketHandler: stateLogger: AUTH: (Client only) Authenticating with server."; } else if (line.contains("GET_CONFIG")) { - qDebug() << "OpenVpnManager: socketHandler: stateLogger: GET_CONFIG: (Client only) Downloading " + qDebug() << "{OpenVpnManager} socketHandler: stateLogger: GET_CONFIG: (Client only) Downloading " "configuration options from server."; } else if (line.contains("ASSIGN_IP")) { - qDebug() << "OpenVpnManager: socketHandler: stateLogger: ASSIGN_IP: Assigning IP address to virtual "
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.