sss_ssh.c revision 3194ce1c60e766e2a850949427dd99ad09944ddb
/*
Authors:
Jan Cholasta <jcholast@redhat.com>
Copyright (C) 2012 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "util/crypto/sss_crypto.h"
struct ldb_message *msg,
struct sss_ssh_ent **result)
{
const char *name;
struct ldb_message_element *el;
unsigned int i;
if (!tmp_ctx) {
return ENOMEM;
}
if (!name) {
goto done;
}
if (!res) {
goto done;
}
goto done;
}
if (el) {
res->num_pubkeys);
goto done;
}
for (i = 0; i < el->num_values; i++) {
goto done;
}
}
}
if (el) {
goto done;
}
for (i = 0; i < el->num_values; i++) {
goto done;
}
}
}
done:
return ret;
}
char *
struct sss_ssh_pubkey *pubkey)
{
size_t c = 0;
char *algo;
if (!algo) {
return NULL;
}
return algo;
}
char *
struct sss_ssh_ent *ent,
struct sss_ssh_pubkey *pubkey,
enum sss_ssh_pubkey_format format)
{
char *blob;
char *algo;
if (!tmp_ctx) {
return NULL;
}
if (!blob) {
goto done;
}
switch (format) {
case SSS_SSH_FORMAT_RAW:
/* base64-encoded key blob */
break;
case SSS_SSH_FORMAT_OPENSSH:
/* OpenSSH authorized_keys/known_hosts format */
if (!algo) {
goto done;
}
break;
}
done:
return result;
}