diff options
author | Darren Tucker <dtucker@zip.com.au> | 2009-12-21 00:49:21 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2009-12-21 00:49:21 +0100 |
commit | 1bf3503c9d5f0c79a108ea0060bcec3e0efe2b37 (patch) | |
tree | 8821d5df4418bb67f6cf1c4ab5f01a94cf27fcf0 /platform.c | |
parent | - (dtucker) Bug #1470: Disable OOM-killing of the listening sshd on Linux, (diff) | |
download | openssh-1bf3503c9d5f0c79a108ea0060bcec3e0efe2b37.tar.xz openssh-1bf3503c9d5f0c79a108ea0060bcec3e0efe2b37.zip |
- (dtucker) [auth-krb5.c platform.{c,h} openbsd-compat/port-aix.{c,h}]
Bug #1583: Use system's kerberos principal name on AIX if it's available.
Based on a patch from and tested by Miguel Sanders.
Diffstat (limited to 'platform.c')
-rw-r--r-- | platform.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/platform.c b/platform.c index 2dc4352f4..e3a428aaa 100644 --- a/platform.c +++ b/platform.c @@ -1,4 +1,4 @@ -/* $Id: platform.c,v 1.2 2009/12/08 02:39:48 dtucker Exp $ */ +/* $Id: platform.c,v 1.3 2009/12/20 23:49:22 dtucker Exp $ */ /* * Copyright (c) 2006 Darren Tucker. All rights reserved. @@ -56,3 +56,13 @@ platform_post_fork_child(void) oom_adjust_restore(); #endif } + +char * +platform_krb5_get_principal_name(const char *pw_name) +{ +#ifdef USE_AIX_KRB_NAME + return aix_krb5_get_principal_name(pw_name); +#else + return NULL; +#endif +} |