return -EINVAL;
}
r = read_full_file(optarg, &key_pem, NULL);
- if (r < 0) {
- log_error_errno(r, "Failed to read key file: %m");
- return r;
- }
+ if (r < 0)
+ return log_error_errno(r, "Failed to read key file: %m");
assert(key_pem);
break;
return -EINVAL;
}
r = read_full_file(optarg, &cert_pem, NULL);
- if (r < 0) {
- log_error_errno(r, "Failed to read certificate file: %m");
- return r;
- }
+ if (r < 0)
+ return log_error_errno(r, "Failed to read certificate file: %m");
assert(cert_pem);
break;
return -EINVAL;
}
r = read_full_file(optarg, &trust_pem, NULL);
- if (r < 0) {
- log_error_errno(r, "Failed to read CA certificate file: %m");
- return r;
- }
+ if (r < 0)
+ return log_error_errno(r, "Failed to read CA certificate file: %m");
assert(trust_pem);
break;
#else