comparison ui/certificate.cpp @ 352:b0a274f4f9e2

Added setter to certificate to change the install/remove state.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 10 Apr 2014 15:55:47 +0200
parents 64e38886f903
children 5f1494fab517
comparison
equal deleted inserted replaced
348:e6aa82466420 352:b0a274f4f9e2
95 if (!mSubjectOU.isEmpty()) { 95 if (!mSubjectOU.isEmpty()) {
96 ret += ", " + mSubjectOU; 96 ret += ", " + mSubjectOU;
97 } 97 }
98 return ret; 98 return ret;
99 } 99 }
100
101 void Certificate::setInstallCert(bool install)
102 {
103 if (install && mBaseLine.startsWith("R:")) {
104 mBaseLine.replace(0, 1, "I");
105 }
106 else if (!install && mBaseLine.startsWith("I:")) {
107 mBaseLine.replace(0, 1, "R");
108 }
109 }

http://wald.intevation.org/projects/trustbridge/