Blame tests/torture_key.h

Packit Service 31306d
/*
Packit Service 31306d
 * torture_key.h - torture library for testing libssh
Packit Service 31306d
 *
Packit Service 31306d
 * This file is part of the SSH Library
Packit Service 31306d
 *
Packit Service 31306d
 * Copyright (c) 2008-2009 by Andreas Schneider <asn@cryptomilk.org>
Packit Service 31306d
 *
Packit Service 31306d
 * The SSH Library is free software; you can redistribute it and/or modify
Packit Service 31306d
 * it under the terms of the GNU Lesser General Public License as published by
Packit Service 31306d
 * the Free Software Foundation; either version 2.1 of the License, or (at your
Packit Service 31306d
 * option) any later version.
Packit Service 31306d
 *
Packit Service 31306d
 * The SSH Library is distributed in the hope that it will be useful, but
Packit Service 31306d
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
Packit Service 31306d
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
Packit Service 31306d
 * License for more details.
Packit Service 31306d
 *
Packit Service 31306d
 * You should have received a copy of the GNU Lesser General Public License
Packit Service 31306d
 * along with the SSH Library; see the file COPYING.  If not, write to
Packit Service 31306d
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
Packit Service 31306d
 * MA 02111-1307, USA.
Packit Service 31306d
 */
Packit Service 31306d
Packit Service 31306d
#ifndef _TORTURE_KEY_H
Packit Service 31306d
#define _TORTURE_KEY_H
Packit Service 31306d
Packit Service 31306d
#include <stdbool.h>
Packit Service 31306d
Packit Service 31306d
#define TORTURE_TESTKEY_PASSWORD "libssh-rocks"
Packit Service 31306d
Packit Service 31306d
/* Return the encrypted private key in a new OpenSSH format */
Packit Service 31306d
const char *torture_get_openssh_testkey(enum ssh_keytypes_e type,
Packit Service 31306d
                                        bool with_passphrase);
Packit Service 31306d
Packit Service 31306d
/* Return the private key in the legacy PEM format */
Packit Service 31306d
const char *torture_get_testkey(enum ssh_keytypes_e type,
Packit Service 31306d
                                bool with_passphrase);
Packit Service 31306d
const char *torture_get_testkey_passphrase(void);
Packit Service 31306d
Packit Service 31306d
const char *torture_get_testkey_pub(enum ssh_keytypes_e type);
Packit Service 31306d
Packit Service 31306d
#endif /* _TORTURE_KEY_H */