################################################################################
-INSTALL(TARGETS ${TARGET_KEY_MANAGER_COMMON} DESTINATION lib)
+INSTALL(TARGETS ${TARGET_KEY_MANAGER_COMMON} DESTINATION ${LIB_INSTALL_DIR})
return CKM_API_ERROR_SOCKET;
}
int error = 0;
- size_t len = sizeof(error);
+ socklen_t len = sizeof(error);
retval = getsockopt(sock, SOL_SOCKET, SO_ERROR, &error, &len);
if (-1 == retval) {
}
if (!pkey && buf[0] != '-') {
- BIO_reset(bio.get());
+ (void)BIO_reset(bio.get());
BIO_write(bio.get(), buf.data(), buf.size());
pkey = d2i_PrivateKey_bio(bio.get(), NULL);
isPrivate = true;
}
if (!pkey && buf[0] == '-') {
- BIO_reset(bio.get());
+ (void)BIO_reset(bio.get());
BIO_write(bio.get(), buf.data(), buf.size());
pkey = PEM_read_bio_PUBKEY(bio.get(), NULL, passcb, const_cast<Password*>(&password));
isPrivate = false;
}
if (!pkey && buf[0] == '-') {
- BIO_reset(bio.get());
+ (void)BIO_reset(bio.get());
BIO_write(bio.get(), buf.data(), buf.size());
pkey = PEM_read_bio_PrivateKey(bio.get(), NULL, passcb, const_cast<Password*>(&password));
isPrivate = true;