blob: 84a482bb33869fc9fb7c5badc2c2ef3495508944 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
diff -pNaru5 a/opal/sipep.cxx b/opal/sipep.cxx
--- a/opal/sipep.cxx 2024-02-02 07:43:58.000000000 -0500
+++ b/opal/sipep.cxx 2024-02-12 15:11:45.278723506 -0500
@@ -494,12 +494,24 @@ bool MySIPEndPoint::Initialise(PArgList
params.m_expire = 300;
params.m_compatibility = SIPRegister::e_FullyCompliant;
params.m_userData = NULL;
if (prms.GetSize() >= 2) {
- params.m_password = prms[1];
- output << " Password: " << params.m_password;
+ PString pw=prms[1];
+ if (pw.Find("@@@")==0) {
+ pw=pw.Mid(3);
+ std::string pws=pw;
+ std::ifstream inFile;
+ inFile.open(pws,ios::in);
+ if (inFile.is_open()) {
+ pw.ReadFrom(inFile);
+ output << " From (" << pws << ")" ;
+ inFile.close();
+ }
+ }
+ params.m_password = pw;
+ output << " Password: (" << params.m_password.GetLength() << ")";
if (prms.GetSize() >= 3) {
params.m_contactAddress = prms[2];
output << " Contact: " << params.m_contactAddress;
|