Blame tests/torture_key.h

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