From: "cron2 (Code Review)" Date: Tue, 23 Sep 2025 09:15:30 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <3ce21e0da1ea4ac319aa86d0b83ef2fcc60625e6-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="17E486DtwE8="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: ssl: Fix -Wconversion warnings in pem_password_callback List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos Cc: openvpn-devel --17E486DtwE8= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#10) to the change originally created b= y flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1137?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 Change subject: ssl: Fix -Wconversion warnings in pem_password_callback ...................................................................... ssl: Fix -Wconversion warnings in pem_password_callback The OpenSSL API is how it is, so adapt with casts. Change-Id: I053ddbb71cc5b9ae16c5a49be833035d943d7eba Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1137 Message-Id: <20250922204158.23319-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg33= 154.html Signed-off-by: Gert Doering --- M src/openvpn/ssl.c 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/37/1137/10 diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c index 9159b8c..ba6919b 100644 --- a/src/openvpn/ssl.c +++ b/src/openvpn/ssl.c @@ -264,10 +264,10 @@ /* prompt for password even if --askpass wasn't specified */ pem_password_setup(NULL); ASSERT(!passbuf.protected); - strncpynt(buf, passbuf.password, size); + strncpynt(buf, passbuf.password, (size_t)size); purge_user_pass(&passbuf, false); - return strlen(buf); + return (int)strlen(buf); } return 0; } -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1137?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I053ddbb71cc5b9ae16c5a49be833035d943d7eba Gerrit-Change-Number: 1137 Gerrit-PatchSet: 10 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --17E486DtwE8= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #10 to the change originally c= reated by flichtenheld.

View Change

The following approvals got out= dated and were removed: Code-Review+2 by cron2

ssl: Fix -Wconversion warnings in pem_password_callb=
ack

The OpenSSL API is how it is, so adapt with casts.

Change= -Id: I053ddbb71cc5b9ae16c5a49be833035d943d7eba
Signed-off-by: Frank Lich= tenheld <frank@...2641...>
Acked-by: Gert Doering <gert@...1726...= ...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1137
Messa= ge-Id: <20250922204158.23319-1-gert@...1296...>
URL: https://www.m= ail-archive.com/openvpn-devel@lists.sourceforge.net/msg33154.html
Signed= -off-by: Gert Doering <gert@...1296...>
---
M src/openvpn/ssl.c=
1 file changed, 2 insertions(+), 2 deletions(-)

git pull ssh:=
//gerrit.openvpn.net:29418/openvpn refs/changes/37/1137/10
diff --=
git a/src/openvpn/ssl.c b/src/openvpn/ssl.c
index 9159b8c..= ba6919b 100644
--- a/src/openvpn/ssl.c
+++ = b/src/openvpn/ssl.c
@@ -264,10 +264,10 @@
= /* prompt for password even if --askpass wasn't specified */
pem_password_setup(NULL);
A= SSERT(!passbuf.protected);
- strncpynt(buf, passbuf.password, size);
+ strncpynt(buf, passbuf.password, = (size_t)size);
purge_user_pass(&passbuf, false= );

- = return strlen(buf);
+ return (int)strlen(buf);
}
return 0;

}

T= o view, visit change 1137. To unsubscribe, or for help writing mail filters, vi= sit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I053ddbb71cc5b9ae16c5a49be83= 3035d943d7eba
Gerrit-Change-Number: 1137
Gerrit-PatchSet: 10
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--17E486DtwE8=--