pkeyutil: check return value reading password