[
https://issues.apache.org/jira/browse/QPID-5927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Richardson updated QPID-5927:
-----------------------------------
Description:
qpid/sys/ssl/util.cpp reads passwords from the password file with
...
std::string password;
file >> password;
...
The stream operator stops reading at the first whitespace character so a
password of eg: "this is a password" (considered valid by certutil) will not
be properly parsed by the broker.
Possibly use std::getline(file, password); or a stream manipulator instead.
was:
qpid/sys/ssl/util.cpp reads passwords from the password file with
...
std::string password;
file >> password;
...
The stream operator stops reading at the first whitespace character so a
password of eg: "this is a password" (considered valid by certutil) will not
be properly parsed by the broker.
Possibly use std::getline(file, password); or a manipulator instead.
> Broker does not support whitespace in passwords in SSL password file
> --------------------------------------------------------------------
>
> Key: QPID-5927
> URL: https://issues.apache.org/jira/browse/QPID-5927
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker
> Affects Versions: 0.28
> Reporter: Chris Richardson
>
> qpid/sys/ssl/util.cpp reads passwords from the password file with
> ...
> std::string password;
> file >> password;
> ...
> The stream operator stops reading at the first whitespace character so a
> password of eg: "this is a password" (considered valid by certutil) will not
> be properly parsed by the broker.
> Possibly use std::getline(file, password); or a stream manipulator instead.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]