This commit is contained in:
parent
f9f0216f3f
commit
59354d66ca
|
@ -38,6 +38,12 @@ TLSSocket::TLSSocket(SSL_CTX* ctx, int sock, const string& host,
|
|||
throw e;
|
||||
}
|
||||
|
||||
// Common name
|
||||
char cn[256];
|
||||
X509 *peer = SSL_get_peer_certificate(ssl);
|
||||
X509_NAME_get_text_by_NID(X509_get_subject_name(peer), NID_commonName, cn, 256);
|
||||
commonName = cn;
|
||||
|
||||
if ((ret = SSL_get_verify_result(ssl)) != X509_V_OK)
|
||||
{char why[100]; sprintf(why,"Cert verify fail: %d",ret);
|
||||
|
||||
|
@ -46,11 +52,6 @@ TLSSocket::TLSSocket(SSL_CTX* ctx, int sock, const string& host,
|
|||
throw e;
|
||||
}
|
||||
|
||||
// Common name
|
||||
char cn[256];
|
||||
X509 *peer = SSL_get_peer_certificate(ssl);
|
||||
X509_NAME_get_text_by_NID(X509_get_subject_name(peer), NID_commonName, cn, 256);
|
||||
commonName = cn;
|
||||
X509_free(peer);
|
||||
}
|
||||
|
||||
|
|
|
@ -55,9 +55,7 @@ ARTKDEPS = -L$(ARTK_LIB_DIR) -lACTK1_0 \
|
|||
# --- targets
|
||||
#
|
||||
|
||||
ifeq ($(LOCATION),authoring)
|
||||
all: cliever
|
||||
endif
|
||||
|
||||
cliever: build/drde-cliever
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ void masterDaemon::dispatch(const mdIncoming &what) {
|
|||
int masterDaemon::initAusRegTK(void) {
|
||||
|
||||
int rc=OK;
|
||||
const std::string nil("/etc/site.properties");
|
||||
const std::string nil("etc/toolkit2.conf");
|
||||
|
||||
try {
|
||||
|
||||
|
|
Loading…
Reference in New Issue