Commit 91704946 authored by Emmanuel Lepage Vallee's avatar Emmanuel Lepage Vallee Committed by Alexandre Lision
Browse files

client: Export account schema

Also rename security.h -> security_const.h

Refs #65314

Change-Id: I1349b63b694c337e88c351a5b2d691145c5ff823
parent 8adf559e
......@@ -135,4 +135,5 @@ libring_la_SOURCES = conference.cpp \
ring_api.cpp
nobase_include_HEADERS= dring/dring.h \
dring/security.h
dring/security_const.h \
dring/account_const.h
......@@ -45,7 +45,7 @@
#include "fileutils.h"
#include "ip_utils.h"
#include "sip/sipaccount.h"
#include "security.h"
#include "security_const.h"
#include "audio/audiolayer.h"
#include <dirent.h>
......
/*
* Copyright (C) 2004-2015 Savoir-Faire Linux Inc.
* Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
* Author: Yan Morin <yan.morin@savoirfairelinux.com>
*
* This program is free software you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Additional permission under GNU GPL version 3 section 7:
*
* If you modify this program, or any covered work, by linking or
* combining it with the OpenSSL project's OpenSSL library (or a
* modified version of that library), containing parts covered by the
* terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
* grants you additional permission to convey the resulting work.
* Corresponding Source for a non-source form of such a combination
* shall include the source code for the parts of OpenSSL used as well
* as that of the covered work.
*/
#ifndef DRING_ACCOUNT_H
#define DRING_ACCOUNT_H
namespace DRing {
namespace Account {
namespace States {
constexpr static const char REGISTERED [] = "REGISTERED" ;
constexpr static const char READY [] = "READY" ;
constexpr static const char UNREGISTERED [] = "UNREGISTERED" ;
constexpr static const char TRYING [] = "TRYING" ;
constexpr static const char ERROR [] = "ERROR" ;
constexpr static const char ERROR_AUTH [] = "ERRORAUTH" ;
constexpr static const char ERROR_NETWORK [] = "ERRORNETWORK" ;
constexpr static const char ERROR_HOST [] = "ERRORHOST" ;
constexpr static const char ERROR_CONF_STUN [] = "ERROR_CONF_STUN" ;
constexpr static const char ERROR_EXIST_STUN [] = "ERROREXISTSTUN" ;
constexpr static const char ERROR_SERVICE_UNAVAILABLE [] = "ERRORSERVICEUNAVAILABLE";
constexpr static const char ERROR_NOT_ACCEPTABLE [] = "ERRORNOTACCEPTABLE" ;
constexpr static const char REQUEST_TIMEOUT [] = "Request Timeout" ;
}; //namespace DRing::Account
namespace VolatileProperties {
// Volatile parameters
namespace Registration {
constexpr static const char STATUS [] = "Account.registrationStatus" ;
constexpr static const char STATE_CODE [] = "Account.registrationCode" ;
constexpr static const char STATE_DESC [] = "Account.registrationDescription";
}; //namespace DRing::VolatileProperties::Registration
namespace Transport {
constexpr static const char STATE_CODE [] = "Transport.statusCode" ;
constexpr static const char STATE_DESC [] = "Transport.statusDescription" ;
}; //namespace DRing::VolatileProperties::Transport
}; //namespace DRing::Account::VolatileProperties
namespace ConfProperties {
constexpr static const char ID [] = "Account.id" ;
constexpr static const char TYPE [] = "Account.type" ;
constexpr static const char ALIAS [] = "Account.alias" ;
constexpr static const char ENABLED [] = "Account.enable" ;
constexpr static const char MAILBOX [] = "Account.mailbox" ;
constexpr static const char DTMF_TYPE [] = "Account.dtmfType" ;
constexpr static const char AUTOANSWER [] = "Account.autoAnswer" ;
constexpr static const char HOSTNAME [] = "Account.hostname" ;
constexpr static const char USERNAME [] = "Account.username" ;
constexpr static const char ROUTE [] = "Account.routeset" ;
constexpr static const char PASSWORD [] = "Account.password" ;
constexpr static const char REALM [] = "Account.realm" ;
constexpr static const char LOCAL_INTERFACE [] = "Account.localInterface" ;
constexpr static const char PUBLISHED_SAMEAS_LOCAL[] = "Account.publishedSameAsLocal" ;
constexpr static const char LOCAL_PORT [] = "Account.localPort" ;
constexpr static const char PUBLISHED_PORT [] = "Account.publishedPort" ;
constexpr static const char PUBLISHED_ADDRESS [] = "Account.publishedAddress" ;
constexpr static const char USER_AGENT [] = "Account.useragent" ;
namespace Audio {
constexpr static const char PORT_MAX [] = "Account.audioPortMax" ;
constexpr static const char PORT_MIN [] = "Account.audioPortMin" ;
}; //namespace DRing::Account::ConfProperties::Audio
namespace Video {
constexpr static const char ENABLED [] = "Account.videoEnabled" ;
constexpr static const char PORT_MAX [] = "Account.videoPortMax" ;
constexpr static const char PORT_MIN [] = "Account.videoPortMin" ;
}; //namespace DRing::Account::ConfProperties::Video
namespace STUN {
constexpr static const char SERVER [] = "STUN.server" ;
constexpr static const char ENABLED [] = "STUN.enable" ;
}; //namespace DRing::Account::ConfProperties::STUN
namespace Presence {
constexpr static const char SUPPORT_PUBLISH [] = "Account.presencePublishSupported" ;
constexpr static const char SUPPORT_SUBSCRIBE [] = "Account.presenceSubscribeSupported" ;
constexpr static const char ENABLED [] = "Account.presenceEnabled" ;
}; //namespace DRing::Account::ConfProperties::Presence
namespace Registration {
constexpr static const char EXPIRE [] = "Account.registrationExpire" ;
constexpr static const char STATUS [] = "Account.registrationStatus" ;
}; //namespace DRing::Account::ConfProperties::Registration
namespace Ringtone {
constexpr static const char PATH [] = "Account.ringtonePath" ;
constexpr static const char ENABLED [] = "Account.ringtoneEnabled" ;
}; //namespace DRing::Account::ConfProperties::Ringtone
namespace SRTP {
constexpr static const char KEY_EXCHANGE [] = "SRTP.keyExchange" ;
constexpr static const char ENABLED [] = "SRTP.enable" ;
constexpr static const char RTP_FALLBACK [] = "SRTP.rtpFallback" ;
}; //namespace DRing::Account::ConfProperties::SRTP
namespace ZRTP {
constexpr static const char DISPLAY_SAS [] = "ZRTP.displaySAS" ;
constexpr static const char NOT_SUPP_WARNING [] = "ZRTP.notSuppWarning" ;
constexpr static const char HELLO_HASH [] = "ZRTP.helloHashEnable" ;
constexpr static const char DISPLAY_SAS_ONCE [] = "ZRTP.displaySasOnce" ;
}; //namespace DRing::Account::ConfProperties::ZRTP
namespace TLS {
constexpr static const char LISTENER_PORT [] = "TLS.listenerPort" ;
constexpr static const char ENABLED [] = "TLS.enable" ;
constexpr static const char PORT [] = "TLS.port" ;
constexpr static const char CA_LIST_FILE [] = "TLS.certificateListFile" ;
constexpr static const char CERTIFICATE_FILE [] = "TLS.certificateFile" ;
constexpr static const char PRIVATE_KEY_FILE [] = "TLS.privateKeyFile" ;
constexpr static const char PASSWORD [] = "TLS.password" ;
constexpr static const char METHOD [] = "TLS.method" ;
constexpr static const char CIPHERS [] = "TLS.ciphers" ;
constexpr static const char SERVER_NAME [] = "TLS.serverName" ;
constexpr static const char VERIFY_SERVER [] = "TLS.verifyServer" ;
constexpr static const char VERIFY_CLIENT [] = "TLS.verifyClient" ;
constexpr static const char REQUIRE_CLIENT_CERTIFICATE [] = "TLS.requireClientCertificate";
constexpr static const char NEGOTIATION_TIMEOUT_SEC [] = "TLS.negotiationTimeoutSec" ;
}; //namespace DRing::Account::ConfProperties::TLS
namespace DHT {
constexpr static const char PORT [] = "DHT.port" ;
constexpr static const char PRIVATE_PATH [] = "DHT.privkeyPath" ;
constexpr static const char CERT_PATH [] = "DHT.certificatePath" ;
}; //namespace DRing::Account::DHT
}; //namespace DRing::Account::ConfProperties
}; //namespace DRing::Account
}; //namespace DRing
#endif
......@@ -27,6 +27,8 @@
* shall include the source code for the parts of OpenSSL used as well
* as that of the covered work.
*/
#ifndef DRING_SECURITY_H
#define DRING_SECURITY_H
namespace DRing {
......@@ -36,51 +38,51 @@ namespace Certificate {
* Those constantes are used by the ConfigurationManager.validateCertificate method
*/
namespace ChecksNames {
constexpr static const char* HAS_PRIVATE_KEY = "HAS_PRIVATE_KEY" ;
constexpr static const char* EXPIRED = "EXPIRED" ;
constexpr static const char* STRONG_SIGNING = "STRONG_SIGNING" ;
constexpr static const char* NOT_SELF_SIGNED = "NOT_SELF_SIGNED" ;
constexpr static const char* KEY_MATCH = "KEY_MATCH" ;
constexpr static const char* PRIVATE_KEY_STORAGE_PERMISSION = "PRIVATE_KEY_STORAGE_PERMISSION" ;
constexpr static const char* PUBLIC_KEY_STORAGE_PERMISSION = "PUBLIC_KEY_STORAGE_PERMISSION" ;
constexpr static const char* PRIVATE_KEY_DIRECTORY_PERMISSIONS = "PRIVATEKEY_DIRECTORY_PERMISSIONS";
constexpr static const char* PUBLIC_KEY_DIRECTORY_PERMISSIONS = "PUBLICKEY_DIRECTORY_PERMISSIONS" ;
constexpr static const char* PRIVATE_KEY_STORAGE_LOCATION = "PRIVATE_KEY_STORAGE_LOCATION" ;
constexpr static const char* PUBLIC_KEY_STORAGE_LOCATION = "PUBLIC_KEY_STORAGE_LOCATION" ;
constexpr static const char* PRIVATE_KEY_SELINUX_ATTRIBUTES = "PRIVATE_KEY_SELINUX_ATTRIBUTES" ;
constexpr static const char* PUBLIC_KEY_SELINUX_ATTRIBUTES = "PUBLIC_KEY_SELINUX_ATTRIBUTES" ;
constexpr static const char* OUTGOING_SERVER = "OUTGOING_SERVER" ;
constexpr static const char* EXIST = "EXIST" ;
constexpr static const char* VALID = "VALID" ;
constexpr static const char* VALID_AUTHORITY = "VALID_AUTHORITY" ;
constexpr static const char* KNOWN_AUTHORITY = "KNOWN_AUTHORITY" ;
constexpr static const char* NOT_REVOKED = "NOT_REVOKED" ;
constexpr static const char* AUTHORITY_MISMATCH = "AUTHORITY_MISMATCH" ;
constexpr static const char* UNEXPECTED_OWNER = "UNEXPECTED_OWNER" ;
constexpr static const char* NOT_ACTIVATED = "NOT_ACTIVATED" ;
constexpr static char HAS_PRIVATE_KEY [] = "HAS_PRIVATE_KEY" ;
constexpr static char EXPIRED [] = "EXPIRED" ;
constexpr static char STRONG_SIGNING [] = "STRONG_SIGNING" ;
constexpr static char NOT_SELF_SIGNED [] = "NOT_SELF_SIGNED" ;
constexpr static char KEY_MATCH [] = "KEY_MATCH" ;
constexpr static char PRIVATE_KEY_STORAGE_PERMISSION [] = "PRIVATE_KEY_STORAGE_PERMISSION" ;
constexpr static char PUBLIC_KEY_STORAGE_PERMISSION [] = "PUBLIC_KEY_STORAGE_PERMISSION" ;
constexpr static char PRIVATE_KEY_DIRECTORY_PERMISSIONS[] = "PRIVATEKEY_DIRECTORY_PERMISSIONS";
constexpr static char PUBLIC_KEY_DIRECTORY_PERMISSIONS [] = "PUBLICKEY_DIRECTORY_PERMISSIONS" ;
constexpr static char PRIVATE_KEY_STORAGE_LOCATION [] = "PRIVATE_KEY_STORAGE_LOCATION" ;
constexpr static char PUBLIC_KEY_STORAGE_LOCATION [] = "PUBLIC_KEY_STORAGE_LOCATION" ;
constexpr static char PRIVATE_KEY_SELINUX_ATTRIBUTES [] = "PRIVATE_KEY_SELINUX_ATTRIBUTES" ;
constexpr static char PUBLIC_KEY_SELINUX_ATTRIBUTES [] = "PUBLIC_KEY_SELINUX_ATTRIBUTES" ;
constexpr static char EXIST [] = "EXIST" ;
constexpr static char VALID [] = "VALID" ;
constexpr static char VALID_AUTHORITY [] = "VALID_AUTHORITY" ;
constexpr static char KNOWN_AUTHORITY [] = "KNOWN_AUTHORITY" ;
constexpr static char NOT_REVOKED [] = "NOT_REVOKED" ;
constexpr static char AUTHORITY_MISMATCH [] = "AUTHORITY_MISMATCH" ;
constexpr static char UNEXPECTED_OWNER [] = "UNEXPECTED_OWNER" ;
constexpr static char NOT_ACTIVATED [] = "NOT_ACTIVATED" ;
} //namespace DRing::Certificate::CheckValuesNames
/**
* Those constants are used by the ConfigurationManager.getCertificateDetails method
*/
namespace DetailsNames {
constexpr static const char* EXPIRATION_DATE = "EXPIRATION_DATE" ;
constexpr static const char* ACTIVATION_DATE = "ACTIVATION_DATE" ;
constexpr static const char* REQUIRE_PRIVATE_KEY_PASSWORD = "REQUIRE_PRIVATE_KEY_PASSWORD" ;
constexpr static const char* PUBLIC_SIGNATURE = "PUBLIC_SIGNATURE" ;
constexpr static const char* VERSION_NUMBER = "VERSION_NUMBER" ;
constexpr static const char* SERIAL_NUMBER = "SERIAL_NUMBER" ;
constexpr static const char* ISSUER = "ISSUER" ;
constexpr static const char* SUBJECT_KEY_ALGORITHM = "SUBJECT_KEY_ALGORITHM" ;
constexpr static const char* CN = "CN" ;
constexpr static const char* N = "N" ;
constexpr static const char* O = "O" ;
constexpr static const char* SIGNATURE_ALGORITHM = "SIGNATURE_ALGORITHM" ;
constexpr static const char* MD5_FINGERPRINT = "MD5_FINGERPRINT" ;
constexpr static const char* SHA1_FINGERPRINT = "SHA1_FINGERPRINT" ;
constexpr static const char* PUBLIC_KEY_ID = "PUBLIC_KEY_ID" ;
constexpr static const char* ISSUER_DN = "ISSUER_DN" ;
constexpr static const char* NEXT_EXPECTED_UPDATE_DATE = "NEXT_EXPECTED_UPDATE_DATE" ;
constexpr static char EXPIRATION_DATE [] = "EXPIRATION_DATE" ;
constexpr static char ACTIVATION_DATE [] = "ACTIVATION_DATE" ;
constexpr static char REQUIRE_PRIVATE_KEY_PASSWORD[] = "REQUIRE_PRIVATE_KEY_PASSWORD" ;
constexpr static char PUBLIC_SIGNATURE [] = "PUBLIC_SIGNATURE" ;
constexpr static char VERSION_NUMBER [] = "VERSION_NUMBER" ;
constexpr static char SERIAL_NUMBER [] = "SERIAL_NUMBER" ;
constexpr static char ISSUER [] = "ISSUER" ;
constexpr static char SUBJECT_KEY_ALGORITHM [] = "SUBJECT_KEY_ALGORITHM" ;
constexpr static char CN [] = "CN" ;
constexpr static char N [] = "N" ;
constexpr static char O [] = "O" ;
constexpr static char SIGNATURE_ALGORITHM [] = "SIGNATURE_ALGORITHM" ;
constexpr static char MD5_FINGERPRINT [] = "MD5_FINGERPRINT" ;
constexpr static char SHA1_FINGERPRINT [] = "SHA1_FINGERPRINT" ;
constexpr static char PUBLIC_KEY_ID [] = "PUBLIC_KEY_ID" ;
constexpr static char ISSUER_DN [] = "ISSUER_DN" ;
constexpr static char NEXT_EXPECTED_UPDATE_DATE [] = "NEXT_EXPECTED_UPDATE_DATE" ;
constexpr static char OUTGOING_SERVER [] = "OUTGOING_SERVER" ;
} //namespace DRing::Certificate::CheckValuesNames
/**
......@@ -88,24 +90,26 @@ namespace DetailsNames {
* ConfigurationManager.validateCertificate methods
*/
namespace ChecksValuesTypesNames {
constexpr static const char* BOOLEAN = "BOOLEAN" ;
constexpr static const char* ISO_DATE = "ISO_DATE" ;
constexpr static const char* CUSTOM = "CUSTOM" ;
constexpr static const char* NUMBER = "NUMBER" ;
constexpr static char BOOLEAN [] = "BOOLEAN" ;
constexpr static char ISO_DATE[] = "ISO_DATE" ;
constexpr static char CUSTOM [] = "CUSTOM" ;
constexpr static char NUMBER [] = "NUMBER" ;
} //namespace DRing::Certificate::CheckValuesNames
/**
* Those constantes are used by the ConfigurationManager.validateCertificate method
*/
namespace CheckValuesNames {
constexpr static const char* PASSED = "PASSED" ;
constexpr static const char* FAILED = "FAILED" ;
constexpr static const char* UNSUPPORTED = "UNSUPPORTED";
constexpr static const char* ISO_DATE = "ISO_DATE" ;
constexpr static const char* CUSTOM = "CUSTOM" ;
constexpr static const char* DATE = "DATE" ;
constexpr static char PASSED [] = "PASSED" ;
constexpr static char FAILED [] = "FAILED" ;
constexpr static char UNSUPPORTED[] = "UNSUPPORTED";
constexpr static char ISO_DATE [] = "ISO_DATE" ;
constexpr static char CUSTOM [] = "CUSTOM" ;
constexpr static char DATE [] = "DATE" ;
} //namespace DRing::Certificate::CheckValuesNames
} //namespace DRing::Certificate
} //namespace DRing
#endif
......@@ -40,7 +40,7 @@
#include "fileutils.h"
#include "logger.h"
#include "security.h"
#include "security_const.h"
#include <sstream>
#include <iomanip>
......@@ -91,7 +91,6 @@ const CallbackMatrix1D<TlsValidator::CertificateCheck, TlsValidator, TlsValidato
/*PUBLIC_KEY_STORAGE_LOCATION */ &TlsValidator::publicKeyStorageLocation ,
/*PRIVATE_KEY_SELINUX_ATTRIBUTES */ &TlsValidator::privateKeySelinuxAttributes ,
/*PUBLIC_KEY_SELINUX_ATTRIBUTES */ &TlsValidator::publicKeySelinuxAttributes ,
/*OUTGOING_SERVER */ &TlsValidator::outgoingServer ,
/*EXIST */ &TlsValidator::exist ,
/*VALID */ &TlsValidator::valid ,
/*VALID_AUTHORITY */ &TlsValidator::validAuthority ,
......@@ -120,6 +119,7 @@ const CallbackMatrix1D<TlsValidator::CertificateDetails, TlsValidator, TlsValida
/* PUBLIC_KEY_ID */ &TlsValidator::getPublicKeyId ,
/* ISSUER_DN */ &TlsValidator::getIssuerDN ,
/* NEXT_EXPECTED_UPDATE_DATE */ &TlsValidator::getIssuerDN , // TODO
/* OUTGOING_SERVER */ &TlsValidator::outgoingServer ,
}};
const Matrix1D<TlsValidator::CertificateCheck, TlsValidator::CheckValuesType> TlsValidator::enforcedCheckType = {{
......@@ -137,7 +137,6 @@ const Matrix1D<TlsValidator::CertificateCheck, TlsValidator::CheckValuesType> Tl
/*PUBLIC_KEY_STORAGE_LOCATION */ CheckValuesType::BOOLEAN ,
/*PRIVATE_KEY_SELINUX_ATTRIBUTES */ CheckValuesType::BOOLEAN ,
/*PUBLIC_KEY_SELINUX_ATTRIBUTES */ CheckValuesType::BOOLEAN ,
/*OUTGOING_SERVER */ CheckValuesType::CUSTOM ,
/*EXIST */ CheckValuesType::BOOLEAN ,
/*VALID */ CheckValuesType::BOOLEAN ,
/*VALID_AUTHORITY */ CheckValuesType::BOOLEAN ,
......@@ -163,7 +162,6 @@ const EnumClassNames<TlsValidator::CertificateCheck> TlsValidator::CertificateCh
/*PUBLIC_KEY_STORAGE_LOCATION */ DRing::Certificate::ChecksNames::PUBLIC_KEY_STORAGE_LOCATION ,
/*PRIVATE_KEY_SELINUX_ATTRIBUTES */ DRing::Certificate::ChecksNames::PRIVATE_KEY_SELINUX_ATTRIBUTES ,
/*PUBLIC_KEY_SELINUX_ATTRIBUTES */ DRing::Certificate::ChecksNames::PUBLIC_KEY_SELINUX_ATTRIBUTES ,
/*OUTGOING_SERVER */ DRing::Certificate::ChecksNames::OUTGOING_SERVER ,
/*EXIST */ DRing::Certificate::ChecksNames::EXIST ,
/*VALID */ DRing::Certificate::ChecksNames::VALID ,
/*VALID_AUTHORITY */ DRing::Certificate::ChecksNames::VALID_AUTHORITY ,
......@@ -192,6 +190,8 @@ const EnumClassNames<TlsValidator::CertificateDetails> TlsValidator::Certificate
/* PUBLIC_KEY_ID */ DRing::Certificate::DetailsNames::PUBLIC_KEY_ID ,
/* ISSUER_DN */ DRing::Certificate::DetailsNames::ISSUER_DN ,
/* NEXT_EXPECTED_UPDATE_DATE */ DRing::Certificate::DetailsNames::NEXT_EXPECTED_UPDATE_DATE ,
/* OUTGOING_SERVER */ DRing::Certificate::DetailsNames::OUTGOING_SERVER ,
}};
const EnumClassNames<const TlsValidator::CheckValuesType> TlsValidator::CheckValuesTypeNames = {{
......@@ -845,19 +845,6 @@ TlsValidator::CheckResult TlsValidator::requirePrivateKeyPassword()
// TODO
return TlsValidator::CheckResult(CheckValues::UNSUPPORTED, "");
}
/**
* The expected outgoing server domain
*
* @todo Move to "certificateDetails()" method once completed
* @todo extract information for the certificate
*/
TlsValidator::CheckResult TlsValidator::outgoingServer()
{
// TODO
return TlsValidator::CheckResult(CheckValues::CUSTOM, "");
}
/**
* The CA and certificate provide conflicting ownership information
*/
......@@ -1142,4 +1129,17 @@ TlsValidator::CheckResult TlsValidator::getActivationDate()
return formatDate(expiration);
}
/**
* The expected outgoing server domain
*
* @todo Move to "certificateDetails()" method once completed
* @todo extract information for the certificate
*/
TlsValidator::CheckResult TlsValidator::outgoingServer()
{
// TODO
return TlsValidator::CheckResult(CheckValues::CUSTOM, "");
}
} //namespace ring
......@@ -59,7 +59,6 @@ public:
PUBLIC_KEY_STORAGE_LOCATION , /** Some operating systems have extra policies for certificate storage */
PRIVATE_KEY_SELINUX_ATTRIBUTES , /** Some operating systems require keys to have extra attributes */
PUBLIC_KEY_SELINUX_ATTRIBUTES , /** Some operating systems require keys to have extra attributes */
OUTGOING_SERVER , /** The hostname/outgoing server used for this certificate */
EXIST , /** The certificate file doesn't exist or is not accessible */
VALID , /** The file is not a certificate */
VALID_AUTHORITY , /** The claimed authority did not sign the certificate */
......@@ -92,6 +91,7 @@ public:
PUBLIC_KEY_ID ,
ISSUER_DN ,
NEXT_EXPECTED_UPDATE_DATE ,
OUTGOING_SERVER , /** The hostname/outgoing server used for this certificate */
COUNT__
};
......@@ -162,7 +162,6 @@ public:
CheckResult publicKeyStorageLocation();
CheckResult privateKeySelinuxAttributes();
CheckResult publicKeySelinuxAttributes();
CheckResult outgoingServer();
CheckResult exist();
CheckResult valid();
CheckResult validAuthority();
......@@ -189,6 +188,7 @@ public:
CheckResult getSha1Fingerprint();
CheckResult getPublicKeyId();
CheckResult getIssuerDN();
CheckResult outgoingServer();
void setCaTlsValidator(const TlsValidator& validator);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment