mirror of https://github.com/wolfSSL/wolfssh.git
43 lines
1.2 KiB
C
43 lines
1.2 KiB
C
|
/* server.c
|
||
|
*
|
||
|
* Copyright (C) 2014 wolfSSL Inc.
|
||
|
*
|
||
|
* This file is part of wolfSSH.
|
||
|
*
|
||
|
* wolfSSH is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation; either version 2 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*
|
||
|
* wolfSSH 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, write to the Free Software
|
||
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||
|
*/
|
||
|
|
||
|
|
||
|
#include <stdio.h>
|
||
|
#include <wolfssh/ssh.h>
|
||
|
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
#ifdef DEBUG_WOLFSSH
|
||
|
wolfSSH_Debugging_ON();
|
||
|
#endif
|
||
|
if (wolfSSH_Init() != WS_SUCCESS) {
|
||
|
fprintf(stderr, "Couldn't initialize wolfSSH.\n");
|
||
|
exit(EXIT_FAILURE);
|
||
|
}
|
||
|
|
||
|
if (wolfSSH_Cleanup() != WS_SUCCESS) {
|
||
|
fprintf(stderr, "Couldn't clean up wolfSSH.\n");
|
||
|
exit(EXIT_FAILURE);
|
||
|
}
|
||
|
}
|
||
|
|