summaryrefslogtreecommitdiffstats
path: root/src/util/sss_ssh.h
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2012-08-27 04:43:23 -0400
committerJakub Hrozek <jhrozek@redhat.com>2012-09-04 10:17:42 +0200
commitef9f85751b26995093cc9782fe48ddeacc8e2d3f (patch)
treeb0d7601f32cccb97189cb503a010037d1b1ea95c /src/util/sss_ssh.h
parenta3d176d116ceccd6a7547c128fab5df5cdd2c2b6 (diff)
downloadsssd-ef9f85751b26995093cc9782fe48ddeacc8e2d3f.tar.gz
sssd-ef9f85751b26995093cc9782fe48ddeacc8e2d3f.tar.xz
sssd-ef9f85751b26995093cc9782fe48ddeacc8e2d3f.zip
SSH: Return error code in SSH utility functions
Diffstat (limited to 'src/util/sss_ssh.h')
-rw-r--r--src/util/sss_ssh.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/util/sss_ssh.h b/src/util/sss_ssh.h
index 29743a085..ef663d9ae 100644
--- a/src/util/sss_ssh.h
+++ b/src/util/sss_ssh.h
@@ -41,20 +41,22 @@ sss_ssh_make_ent(TALLOC_CTX *mem_ctx,
struct ldb_message *msg,
struct sss_ssh_ent **result);
-char *
+errno_t
sss_ssh_get_pubkey_algorithm(TALLOC_CTX *mem_ctx,
- struct sss_ssh_pubkey *pubkey);
+ struct sss_ssh_pubkey *pubkey,
+ char **result);
enum sss_ssh_pubkey_format {
SSS_SSH_FORMAT_RAW,
SSS_SSH_FORMAT_OPENSSH
};
-char *
+errno_t
sss_ssh_format_pubkey(TALLOC_CTX *mem_ctx,
struct sss_ssh_ent *ent,
struct sss_ssh_pubkey *pubkey,
enum sss_ssh_pubkey_format format,
- const char *comment);
+ const char *comment,
+ char **result);
#endif /* _SSS_SSH_H_ */