}
if (len != 1 || buf[0] != '\1') {
virReportError(VIR_ERR_RPC, "%s",
- _("server verification (of our certificate or IP "
- "address) failed"));
+ _("server verification (of our certificate or IP address) failed"));
goto error;
}
(msg->bufferLength != 0) &&
(msg->header.status == VIR_NET_CONTINUE)) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("Attempt to send an asynchronous message with"
- " a synchronous reply"));
+ _("Attempt to send an asynchronous message with a synchronous reply"));
goto error;
}
if (expectReply && nonBlock) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("Attempt to send a non-blocking message with"
- " a synchronous reply"));
+ _("Attempt to send a non-blocking message with a synchronous reply"));
goto error;
}
if (ssh_get_server_publickey(sess->session, &key) != SSH_OK) {
virReportError(VIR_ERR_LIBSSH, "%s",
- _("failed to get the key of the current "
- "session"));
+ _("failed to get the key of the current session"));
return NULL;
}
/* host key verification failed */
virReportError(VIR_ERR_AUTH_FAILED,
- _("!!! SSH HOST KEY VERIFICATION FAILED !!!: Identity of host '%1$s:%2$d' differs from stored identity. "
- "Please verify the new host key '%3$s' to avoid possible man in the middle attack. The key is stored in '%4$s'."),
+ _("!!! SSH HOST KEY VERIFICATION FAILED !!!: Identity of host '%1$s:%2$d' differs from stored identity. Please verify the new host key '%3$s' to avoid possible man in the middle attack. The key is stored in '%4$s'."),
sess->hostname, sess->port,
keyhashstr, sess->knownHostsFile);
/* ask to add the key */
if (!sess->cred || !sess->cred->cb) {
virReportError(VIR_ERR_LIBSSH, "%s",
- _("No user interaction callback provided: "
- "Can't verify the session host key"));
+ _("No user interaction callback provided: Can't verify the session host key"));
return -1;
}
/* request user's key password */
if (!sess->cred || !sess->cred->cb) {
virReportError(VIR_ERR_LIBSSH, "%s",
- _("No user interaction callback provided: "
- "Can't retrieve private key passphrase"));
+ _("No user interaction callback provided: Can't retrieve private key passphrase"));
return -1;
}
/* password authentication with interactive password request */
if (!sess->cred || !sess->cred->cb) {
virReportError(VIR_ERR_LIBSSH, "%s",
- _("Can't perform authentication: "
- "Authentication callback not provided"));
+ _("Can't perform authentication: Authentication callback not provided"));
return SSH_AUTH_ERROR;
}
/* request user's key password */
if (!sess->cred || !sess->cred->cb) {
virReportError(VIR_ERR_LIBSSH, "%s",
- _("No user interaction callback provided: "
- "Can't get input from keyboard interactive "
- "authentication"));
+ _("No user interaction callback provided: Can't get input from keyboard interactive authentication"));
return SSH_AUTH_ERROR;
}
errmsg);
} else if (no_method && !auth_failed) {
virReportError(VIR_ERR_AUTH_FAILED, "%s",
- _("None of the requested authentication methods "
- "are supported by the server"));
+ _("None of the requested authentication methods are supported by the server"));
} else {
virReportError(VIR_ERR_AUTH_FAILED, "%s",
- _("All provided authentication methods with credentials "
- "were rejected by the server"));
+ _("All provided authentication methods with credentials were rejected by the server"));
}
return -1;
}
if (!has_auths) {
virReportError(VIR_ERR_LIBSSH, "%s",
- _("No authentication methods and credentials "
- "provided"));
+ _("No authentication methods and credentials provided"));
return -1;
}
if (max_clients < max_anonymous_clients) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("The overall maximum number of clients must not be less "
- "than the number of clients waiting for authentication"));
+ _("The overall maximum number of clients must not be less than the number of clients waiting for authentication"));
return NULL;
}
}
if (max_clients < max_anonymous_clients) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("The overall maximum number of clients must not be less "
- "than the number of clients waiting for authentication"));
+ _("The overall maximum number of clients must not be less than the number of clients waiting for authentication"));
return NULL;
}
} else {
if (max < max_unauth) {
virReportError(VIR_ERR_INVALID_ARG, "%s",
- _("The overall maximum number of clients must not be less "
- "than the number of clients waiting for authentication"));
+ _("The overall maximum number of clients must not be less than the number of clients waiting for authentication"));
return -1;
}
} else {
if (virJSONValueObjectGetNumberLong(object, "conn_time", ×tamp) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("Malformed conn_time field in JSON "
- "state document"));
+ _("Malformed conn_time field in JSON state document"));
return NULL;
}
}
/* ask to add the key */
if (!sess->cred || !sess->cred->cb) {
virReportError(VIR_ERR_SSH, "%s",
- _("No user interaction callback provided: "
- "Can't verify the session host key"));
+ _("No user interaction callback provided: Can't verify the session host key"));
return -1;
}
if (i == sess->cred->ncredtype) {
virReportError(VIR_ERR_SSH, "%s",
- _("no suitable callback for host key "
- "verification"));
+ _("no suitable callback for host key verification"));
return -1;
}
if (sess->cred->cb(&askKey, 1, sess->cred->cbdata)) {
virReportError(VIR_ERR_SSH, "%s",
- _("failed to retrieve decision to accept "
- "host key"));
+ _("failed to retrieve decision to accept host key"));
tmp = (char*)askKey.prompt;
VIR_FREE(tmp);
VIR_FREE(keyhashstr);
case LIBSSH2_KNOWNHOST_CHECK_MISMATCH:
/* host key verification failed */
virReportError(VIR_ERR_AUTH_FAILED,
- _("!!! SSH HOST KEY VERIFICATION FAILED !!!: Identity of host '%1$s:%2$d' differs from stored identity. "
- "Please verify the new host key '%3$s' to avoid possible man in the middle attack. The key is stored in '%4$s'."),
+ _("!!! SSH HOST KEY VERIFICATION FAILED !!!: Identity of host '%1$s:%2$d' differs from stored identity. Please verify the new host key '%3$s' to avoid possible man in the middle attack. The key is stored in '%4$s'."),
sess->hostname, sess->port,
knownHostEntry->key, sess->knownHostsFile);
return -1;
if (ret == 1) {
if (no_identity) {
virReportError(VIR_ERR_AUTH_FAILED, "%s",
- _("SSH Agent did not provide any "
- "authentication identity"));
+ _("SSH Agent did not provide any authentication identity"));
} else {
virReportError(VIR_ERR_AUTH_FAILED, "%s",
- _("All identities provided by the SSH Agent "
- "were rejected"));
+ _("All identities provided by the SSH Agent were rejected"));
}
return 1;
}
/* request user's key password */
if (!sess->cred || !sess->cred->cb) {
virReportError(VIR_ERR_SSH, "%s",
- _("No user interaction callback provided: "
- "Can't retrieve private key passphrase"));
+ _("No user interaction callback provided: Can't retrieve private key passphrase"));
return -1;
}
if (sess->cred->cb(&retr_passphrase, 1, sess->cred->cbdata)) {
virReportError(VIR_ERR_SSH, "%s",
- _("failed to retrieve private key passphrase: "
- "callback has failed"));
+ _("failed to retrieve private key passphrase: callback has failed"));
tmp = (char *)retr_passphrase.prompt;
VIR_FREE(tmp);
return -1;
/* password authentication with interactive password request */
if (!sess->cred || !sess->cred->cb) {
virReportError(VIR_ERR_SSH, "%s",
- _("Can't perform authentication: "
- "Authentication callback not provided"));
+ _("Can't perform authentication: Authentication callback not provided"));
goto cleanup;
}
if (!sess->cred || !sess->cred->cb) {
virReportError(VIR_ERR_SSH, "%s",
- _("Can't perform keyboard-interactive authentication: "
- "Authentication callback not provided"));
+ _("Can't perform keyboard-interactive authentication: Authentication callback not provided"));
return -1;
}
switch (sess->authCbErr) {
case VIR_NET_SSH_AUTHCB_NO_METHOD:
virReportError(VIR_ERR_SSH, "%s",
- _("no suitable method to retrieve "
- "authentication credentials"));
+ _("no suitable method to retrieve authentication credentials"));
return -1;
case VIR_NET_SSH_AUTHCB_OOM:
/* OOM error already reported */
if (!sess->nauths) {
virReportError(VIR_ERR_SSH, "%s",
- _("No authentication methods and credentials "
- "provided"));
+ _("No authentication methods and credentials provided"));
return -1;
}
/* pass through the error */
} else if (no_method && !auth_failed) {
virReportError(VIR_ERR_AUTH_FAILED, "%s",
- _("None of the requested authentication methods "
- "are supported by the server"));
+ _("None of the requested authentication methods are supported by the server"));
} else {
virReportError(VIR_ERR_AUTH_FAILED, "%s",
- _("All provided authentication methods with credentials "
- "were rejected by the server"));
+ _("All provided authentication methods with credentials were rejected by the server"));
}
return -1;
{
if (sess->nauths == 0) {
virReportError(VIR_ERR_SSH, "%s",
- _("No authentication methods and credentials "
- "provided"));
+ _("No authentication methods and credentials provided"));
return -1;
}
/* This is the most common error: make it informative. */
virReportError(VIR_ERR_SYSTEM_ERROR, "%s",
- _("Client's Distinguished Name is not on the list "
- "of allowed clients (tls_allowed_dn_list). Use "
- "'virt-pki-query-dn clientcert.pem' to view the "
- "Distinguished Name field in the client certificate, "
- "or run this daemon with --verbose option."));
+ _("Client's Distinguished Name is not on the list of allowed clients (tls_allowed_dn_list). Use 'virt-pki-query-dn clientcert.pem' to view the Distinguished Name field in the client certificate, or run this daemon with --verbose option."));
return 0;
}