mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
Normalize the license in all files and add vim tab instructions.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@305 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -1,26 +1,32 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2003 Aris Adamantiadis
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
|
* Copyright (c) 2003 by Aris Adamantiadis
|
||||||
|
*
|
||||||
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
|
* option) any later version.
|
||||||
|
*
|
||||||
|
* The SSH Library 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 Lesser General Public
|
||||||
|
* License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
This file is part of the SSH Library
|
/*
|
||||||
|
* crypto.h is an include file for internal structures of libssh
|
||||||
|
* It hasn't to be into the final development set of files (and btw
|
||||||
|
* the filename would cause problems on most systems).
|
||||||
|
*/
|
||||||
|
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
|
||||||
option) any later version.
|
|
||||||
|
|
||||||
The SSH Library 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 Lesser General Public
|
|
||||||
License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
|
||||||
MA 02111-1307, USA. */
|
|
||||||
|
|
||||||
/* Crypto.h is an include file for internal structures of libssh */
|
|
||||||
/* It hasn't to be into the final development set of files (and btw the filename would cause problems on most systems) */
|
|
||||||
/* Openssl has (really) stupid defines */
|
|
||||||
#ifdef set_key
|
#ifdef set_key
|
||||||
#undef set_key
|
#undef set_key
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,22 +1,25 @@
|
|||||||
/*
|
/*
|
||||||
Copyright (c) 2003-2008 Aris Adamantiadis
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
option) any later version.
|
* option) any later version.
|
||||||
|
*
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
License for more details.
|
* License for more details.
|
||||||
|
*
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
MA 02111-1307, USA. */
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef _LIBSSH_H
|
#ifndef _LIBSSH_H
|
||||||
#define _LIBSSH_H
|
#define _LIBSSH_H
|
||||||
|
|||||||
@@ -1,27 +1,33 @@
|
|||||||
/*
|
/*
|
||||||
Copyright (c) 2003-2008 Aris Adamantiadis
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
|
*
|
||||||
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
|
* option) any later version.
|
||||||
|
*
|
||||||
|
* The SSH Library 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 Lesser General Public
|
||||||
|
* License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
This file is part of the SSH Library
|
/*
|
||||||
|
* priv.h file
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* This include file contains everything you shouldn't deal with in
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
* user programs. Consider that anything in this file might change
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* without notice; libssh.h file will keep backward compatibility
|
||||||
option) any later version.
|
* on binary & source
|
||||||
|
*/
|
||||||
The SSH Library 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 Lesser General Public
|
|
||||||
License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
|
||||||
MA 02111-1307, USA. */
|
|
||||||
|
|
||||||
/* priv.h file */
|
|
||||||
/* This include file contains everything you shouldn't deal with in user programs. */
|
|
||||||
/* Consider that anything in this file might change without notice; libssh.h file will keep */
|
|
||||||
/* backward compatibility on binary & source */
|
|
||||||
|
|
||||||
#ifndef _LIBSSH_PRIV_H
|
#ifndef _LIBSSH_PRIV_H
|
||||||
#define _LIBSSH_PRIV_H
|
#define _LIBSSH_PRIV_H
|
||||||
|
|||||||
@@ -1,22 +1,25 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2004 Aris Adamantiadis
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
option) any later version.
|
* option) any later version.
|
||||||
|
*
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
License for more details.
|
* License for more details.
|
||||||
|
*
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
MA 02111-1307, USA. */
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef SERVER_H
|
#ifndef SERVER_H
|
||||||
#define SERVER_H
|
#define SERVER_H
|
||||||
|
|||||||
@@ -1,23 +1,25 @@
|
|||||||
/* sftp headers */
|
|
||||||
/*
|
/*
|
||||||
Copyright 2003-2005 Aris Adamantiadis
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
option) any later version.
|
* option) any later version.
|
||||||
|
*
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
License for more details.
|
* License for more details.
|
||||||
|
*
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
MA 02111-1307, USA. */
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file sftp.h
|
* @file sftp.h
|
||||||
|
|||||||
@@ -19,6 +19,8 @@
|
|||||||
* along with the SSH Library; see the file COPYING. If not, write to
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
* MA 02111-1307, USA.
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This file is based on authfd.c from OpenSSH */
|
/* This file is based on authfd.c from OpenSSH */
|
||||||
|
|||||||
@@ -1,24 +1,28 @@
|
|||||||
/* auth.c deals with authentication methods */
|
|
||||||
/*
|
/*
|
||||||
Copyright (c) 2003-2008 Aris Adamantiadis
|
* auth1.c - authentication with SSH protocols
|
||||||
Copyright (c) 2008-2009 Andreas Schneider <mail@cynapses.org>
|
*
|
||||||
|
* This file is part of the SSH Library
|
||||||
This file is part of the SSH Library
|
*
|
||||||
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2008-2009 Andreas Schneider <mail@cynapses.org>
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include "libssh/priv.h"
|
#include "libssh/priv.h"
|
||||||
#include "libssh/ssh2.h"
|
#include "libssh/ssh2.h"
|
||||||
|
|||||||
@@ -1,23 +1,27 @@
|
|||||||
/* auth1.c deals with authentication with SSH-1 protocol */
|
|
||||||
/*
|
/*
|
||||||
Copyright (c) 2005-2008 Aris Adamantiadis
|
* auth1.c - authentication with SSH-1 protocol
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2005-2008 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include "libssh/priv.h"
|
#include "libssh/priv.h"
|
||||||
#include "libssh/ssh1.h"
|
#include "libssh/ssh1.h"
|
||||||
|
|||||||
@@ -1,24 +1,27 @@
|
|||||||
/* base64 contains the needed support for base64 alphabet system, */
|
|
||||||
/* as described in RFC1521 */
|
|
||||||
/*
|
/*
|
||||||
Copyright 2003-2005 Aris Adamantiadis
|
* base64.c - support for base64 alphabet system, described in RFC1521
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2005-2005 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
/* just the dirtiest part of code i ever made */
|
/* just the dirtiest part of code i ever made */
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
@@ -1,22 +1,27 @@
|
|||||||
/*
|
/*
|
||||||
Copyright (c) 2003-2008 Aris Adamantiadis
|
* buffer.c - buffer functions
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
@@ -1,22 +1,27 @@
|
|||||||
/*
|
/*
|
||||||
Copyright (c) 2003-2008 Aris Adamantiadis
|
* channels.c - SSH channel functions
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -1,24 +1,27 @@
|
|||||||
/* channels1.c */
|
|
||||||
/* Support for SSH-1 type channels */
|
|
||||||
/*
|
/*
|
||||||
Copyright 2005 Aris Adamantiadis
|
* channels1.c - Support for SSH-1 type channels
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -1,23 +1,27 @@
|
|||||||
/* client.c file */
|
|
||||||
/*
|
/*
|
||||||
Copyright (c) 2003-2008 Aris Adamantiadis
|
* client.c - SSH client functions
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -1,24 +1,27 @@
|
|||||||
/* connect.c */
|
|
||||||
/* it handles connections to ssh servers */
|
|
||||||
/*
|
/*
|
||||||
Copyright (c) 2003-2008 Aris Adamantiadis
|
* connect.c - handles connections to ssh servers
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
/* simple CRC32 code */
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2005 Aris Adamantiadis
|
* crc32.c - simple CRC32 code
|
||||||
*
|
*
|
||||||
* This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
*
|
*
|
||||||
|
* Copyright (c) 2005 by Aris Adamantiadis
|
||||||
|
*
|
||||||
* The SSH Library is free software; you can redistribute it and/or modify
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
* option) any later version.
|
* option) any later version.
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* The SSH Library is distributed in the hope that it will be useful, but
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
@@ -18,9 +18,13 @@
|
|||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with the SSH Library; see the file COPYING. If not, write to
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
* MA 02111-1307, USA. */
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include "libssh/priv.h"
|
#include "libssh/priv.h"
|
||||||
|
|
||||||
static u32 crc_table[] = {
|
static u32 crc_table[] = {
|
||||||
0x00000000UL, 0x77073096UL, 0xee0e612cUL, 0x990951baUL, 0x076dc419UL,
|
0x00000000UL, 0x77073096UL, 0xee0e612cUL, 0x990951baUL, 0x076dc419UL,
|
||||||
0x706af48fUL, 0xe963a535UL, 0x9e6495a3UL, 0x0edb8832UL, 0x79dcb8a4UL,
|
0x706af48fUL, 0xe963a535UL, 0x9e6495a3UL, 0x0edb8832UL, 0x79dcb8a4UL,
|
||||||
|
|||||||
@@ -1,24 +1,27 @@
|
|||||||
/* crypt.c */
|
|
||||||
/* it just contains the shit necessary to make blowfish-cbc work ... */
|
|
||||||
/*
|
/*
|
||||||
Copyright 2003 Aris Adamantiadis
|
* crypt.c - blowfish-cbc code
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2003 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
74
libssh/dh.c
74
libssh/dh.c
@@ -1,39 +1,45 @@
|
|||||||
/* dh.c */
|
|
||||||
/* this file contains usefull stuff for Diffie helman algorithm against SSH 2 */
|
|
||||||
/*
|
/*
|
||||||
Copyright 2003-2008 Aris Adamantiadis
|
* dh.c - Diffie-Helman algorithm code against SSH 2
|
||||||
|
*
|
||||||
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
|
*
|
||||||
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
|
* option) any later version.
|
||||||
|
*
|
||||||
|
* The SSH Library 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 Lesser General Public
|
||||||
|
* License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
This file is part of the SSH Library
|
/*
|
||||||
|
* Let us resume the dh protocol.
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Each side computes a private prime number, x at client side, y at server
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
* side.
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* g and n are two numbers common to every ssh software.
|
||||||
option) any later version.
|
* client's public key (e) is calculated by doing:
|
||||||
|
* e = g^x mod p
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* client sents e to the server.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
* the server computes his own public key, f
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* f = g^y mod p
|
||||||
License for more details.
|
* it sents it to the client
|
||||||
|
* the common key K is calculated by the client by doing
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* k = f^x mod p
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
* the server does the same with the client public key e
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* k' = e^y mod p
|
||||||
MA 02111-1307, USA. */
|
* if everything went correctly, k and k' are equal
|
||||||
|
*/
|
||||||
/* Let us resume the dh protocol. */
|
|
||||||
/* Each side computes a private prime number, x at client side, y at server side. */
|
|
||||||
/* g and n are two numbers common to every ssh software. */
|
|
||||||
/* client's public key (e) is calculated by doing */
|
|
||||||
/* e = g^x mod p */
|
|
||||||
/* client sents e to the server . */
|
|
||||||
/* the server computes his own public key, f */
|
|
||||||
/* f = g^y mod p */
|
|
||||||
/* it sents it to the client */
|
|
||||||
/* the common key K is calculated by the client by doing */
|
|
||||||
/* k = f^x mod p */
|
|
||||||
/* the server does the same with the client public key e */
|
|
||||||
/* k' = e^y mod p */
|
|
||||||
/* if everything went correctly, k and k' are equal */
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -1,26 +1,32 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2003-2008 Aris Adamantiadis
|
* error.c - functions for ssh error handling
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include "libssh/priv.h"
|
#include "libssh/priv.h"
|
||||||
|
|
||||||
/** \defgroup ssh_error SSH Errors
|
/** \defgroup ssh_error SSH Errors
|
||||||
* \brief error handling
|
* \brief error handling
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,25 +1,28 @@
|
|||||||
/* gcrypt_missing.c */
|
|
||||||
/* This file contains routines that are in OpenSSL but not in libgcrypt */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2003,04,06 Aris Adamantiadis
|
* gcrypt_missing.c - routines that are in OpenSSL but not in libgcrypt.
|
||||||
|
*
|
||||||
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
|
* Copyright (c) 2003-2006 by Aris Adamantiadis
|
||||||
|
*
|
||||||
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
|
* option) any later version.
|
||||||
|
*
|
||||||
|
* The SSH Library 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 Lesser General Public
|
||||||
|
* License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
This file is part of the SSH Library
|
|
||||||
|
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
|
||||||
option) any later version.
|
|
||||||
|
|
||||||
The SSH Library 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 Lesser General Public
|
|
||||||
License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
|
||||||
MA 02111-1307, USA. */
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "libssh/priv.h"
|
#include "libssh/priv.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +1,27 @@
|
|||||||
/* gzip.c */
|
|
||||||
/* include hooks for compression of packets */
|
|
||||||
/*
|
/*
|
||||||
Copyright 2003 Aris Adamantiadis
|
* gzip.c - hooks for compression of packets
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2003 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "libssh/priv.h"
|
#include "libssh/priv.h"
|
||||||
|
|||||||
@@ -1,30 +1,33 @@
|
|||||||
/* init.c */
|
|
||||||
/* This file handles initialization and finalization of the library */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2003,04,06 Aris Adamantiadis
|
* init.c - initialization and finalization of the library
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2003-2006 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include "libssh/priv.h"
|
#include "libssh/priv.h"
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \addtogroup ssh_session
|
* \addtogroup ssh_session
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
42
libssh/kex.c
42
libssh/kex.c
@@ -1,23 +1,27 @@
|
|||||||
/* kex.c is used well, in key exchange :-) */
|
|
||||||
/*
|
/*
|
||||||
Copyright (c) 2003-2008 Aris Adamantiadis
|
* kex.c - key exchange
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -1,27 +1,29 @@
|
|||||||
/* keyfiles.c */
|
|
||||||
/* This part of the library handles private and public key files needed for publickey authentication,*/
|
|
||||||
/* as well as servers public hashes verifications and certifications. Lot of code here handles openssh */
|
|
||||||
/* implementations (key files aren't standardized yet). */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2003,04 Aris Adamantiadis
|
* keyfiles.c - private and public key handling for authentication.
|
||||||
|
*
|
||||||
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
|
* Copyright (c) 2003-2009 by Aris Adamantiadis
|
||||||
|
* Copyright (c) 2009 by Andreas Schneider <mail@cynapses.org>
|
||||||
|
*
|
||||||
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
|
* option) any later version.
|
||||||
|
*
|
||||||
|
* The SSH Library 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 Lesser General Public
|
||||||
|
* License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
This file is part of the SSH Library
|
|
||||||
|
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
|
||||||
option) any later version.
|
|
||||||
|
|
||||||
The SSH Library 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 Lesser General Public
|
|
||||||
License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
|
||||||
MA 02111-1307, USA. */
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|||||||
@@ -1,25 +1,28 @@
|
|||||||
/* keys handle the public key related functions */
|
|
||||||
/* decoding a public key (both rsa and dsa), decoding a signature (rsa and dsa), veryfying them */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2003-2005 Aris Adamantiadis
|
* keys.c - decoding a public key or signature and verifying them
|
||||||
|
*
|
||||||
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
|
* Copyright (c) 2003-2005 by Aris Adamantiadis
|
||||||
|
*
|
||||||
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
|
* option) any later version.
|
||||||
|
*
|
||||||
|
* The SSH Library 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 Lesser General Public
|
||||||
|
* License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
This file is part of the SSH Library
|
|
||||||
|
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
|
||||||
option) any later version.
|
|
||||||
|
|
||||||
The SSH Library 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 Lesser General Public
|
|
||||||
License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
|
||||||
MA 02111-1307, USA. */
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#ifdef HAVE_LIBCRYPTO
|
#ifdef HAVE_LIBCRYPTO
|
||||||
|
|||||||
18
libssh/log.c
18
libssh/log.c
@@ -1,8 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2008 Aris Adamantiadis
|
* log.c - logging and debugging functions
|
||||||
*
|
*
|
||||||
* This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
*
|
*
|
||||||
|
* Copyright (c) 2008 by Aris Adamantiadis
|
||||||
|
*
|
||||||
* The SSH Library is free software; you can redistribute it and/or modify
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
@@ -16,18 +18,22 @@
|
|||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with the SSH Library; see the file COPYING. If not, write to
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
* MA 02111-1307, USA. */
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "libssh/priv.h"
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
/** \defgroup ssh_log SSH Logging
|
/** \defgroup ssh_log SSH Logging
|
||||||
* \brief Logging functions for debugging and problem resolving
|
* \brief Logging functions for debugging and problem resolving
|
||||||
*/
|
*/
|
||||||
/** \addtogroup ssh_log
|
/** \addtogroup ssh_log
|
||||||
* @{ */
|
* @{ */
|
||||||
#include "libssh/priv.h"
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <string.h>
|
|
||||||
/** \brief logs an event
|
/** \brief logs an event
|
||||||
* \param session the SSH session
|
* \param session the SSH session
|
||||||
* \param verbosity verbosity of the event
|
* \param verbosity verbosity of the event
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
* incompatible with the protocol description in the RFC file, it must be
|
* incompatible with the protocol description in the RFC file, it must be
|
||||||
* called by a name other than "ssh" or "Secure Shell".
|
* called by a name other than "ssh" or "Secure Shell".
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -34,6 +35,10 @@
|
|||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
@@ -1,23 +1,28 @@
|
|||||||
/* messages.c */
|
|
||||||
/*
|
/*
|
||||||
Copyright 2005 Aris Adamantiadis
|
* messages.c - message parsion for the server
|
||||||
|
*
|
||||||
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
|
* Copyright (c) 2003-2005 by Aris Adamantiadis
|
||||||
|
*
|
||||||
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
|
* option) any later version.
|
||||||
|
*
|
||||||
|
* The SSH Library 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 Lesser General Public
|
||||||
|
* License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
This file is part of the SSH Library
|
|
||||||
|
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
|
||||||
option) any later version.
|
|
||||||
|
|
||||||
The SSH Library 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 Lesser General Public
|
|
||||||
License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
|
||||||
MA 02111-1307, USA. */
|
|
||||||
/** \defgroup ssh_messages SSH Messages
|
/** \defgroup ssh_messages SSH Messages
|
||||||
* this file contains the Message parsing utilities for server programs using
|
* this file contains the Message parsing utilities for server programs using
|
||||||
* libssh. The main loop of the program will call ssh_message_get(session) to
|
* libssh. The main loop of the program will call ssh_message_get(session) to
|
||||||
|
|||||||
@@ -1,26 +1,28 @@
|
|||||||
/* misc.c */
|
|
||||||
/* some misc routines than aren't really part of the ssh protocols but can be useful to the client */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2003 Aris Adamantiadis
|
* misc.c - useful client functions
|
||||||
Copyright 2009 Andreas Schneider <mail@cynapses.org>
|
*
|
||||||
|
* This file is part of the SSH Library
|
||||||
This file is part of the SSH Library
|
*
|
||||||
|
* Copyright (c) 2003 by Aris Adamantiadis
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2008-2009 by Andreas Schneider <mail@cynapses.org>
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -1,24 +1,28 @@
|
|||||||
/* options.c */
|
|
||||||
/* handle pre-connection options */
|
|
||||||
/*
|
/*
|
||||||
Copyright 2003-2008 Aris Adamantiadis
|
* options.c - handle pre-connection options
|
||||||
|
*
|
||||||
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
|
*
|
||||||
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
|
* option) any later version.
|
||||||
|
*
|
||||||
|
* The SSH Library 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 Lesser General Public
|
||||||
|
* License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
This file is part of the SSH Library
|
|
||||||
|
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
|
||||||
option) any later version.
|
|
||||||
|
|
||||||
The SSH Library 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 Lesser General Public
|
|
||||||
License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
|
||||||
MA 02111-1307, USA. */
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -1,24 +1,27 @@
|
|||||||
/* packet.c */
|
|
||||||
/* packet building functions */
|
|
||||||
/*
|
/*
|
||||||
Copyright (c) 2003-2008 Aris Adamantiadis
|
* packet.c - packet building functions
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -1,23 +1,27 @@
|
|||||||
/* server.c */
|
|
||||||
/*
|
/*
|
||||||
Copyright 2004,2005 Aris Adamantiadis
|
* server.c - functions for creating a SSH server
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2004-2005 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \defgroup ssh_server SSH Server
|
* \defgroup ssh_server SSH Server
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
/* session.c */
|
|
||||||
/* contains the non-networking functions ssh_* */
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005-2008 Aris Adamantiadis
|
* session.c - non-networking functions
|
||||||
*
|
*
|
||||||
* This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
*
|
*
|
||||||
|
* Copyright (c) 2005-2008 by Aris Adamantiadis
|
||||||
|
*
|
||||||
* The SSH Library is free software; you can redistribute it and/or modify
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
@@ -18,7 +18,10 @@
|
|||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with the SSH Library; see the file COPYING. If not, write to
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
* MA 02111-1307, USA. */
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -1,25 +1,30 @@
|
|||||||
/* scp.c contains the needed function to work with file transfer protocol over ssh*/
|
|
||||||
/* don't look further if you believe this is just FTP over some tunnel. It IS different */
|
|
||||||
/* This file contains code written by Nick Zitzmann */
|
|
||||||
/*
|
/*
|
||||||
Copyright 2003-2005 Aris Adamantiadis
|
* sftp.c - Secure FTP functions
|
||||||
|
*
|
||||||
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
|
* Copyright (c) 2005-2008 by Aris Adamantiadis
|
||||||
|
* Copyright (c) 2008-2009 by Andreas Schneider <mail@cynapses.org>
|
||||||
|
*
|
||||||
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
|
* option) any later version.
|
||||||
|
*
|
||||||
|
* The SSH Library 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 Lesser General Public
|
||||||
|
* License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
This file is part of the SSH Library
|
/* This file contains code written by Nick Zitzmann */
|
||||||
|
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
|
||||||
option) any later version.
|
|
||||||
|
|
||||||
The SSH Library 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 Lesser General Public
|
|
||||||
License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
|
||||||
MA 02111-1307, USA. */
|
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -1,23 +1,27 @@
|
|||||||
/* sftpserver.c contains server based function for the sftp protocol */
|
|
||||||
/*
|
/*
|
||||||
Copyright 2005 Aris Adamantiadis
|
* sftpserver.c - server based function for the sftp protocol
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2005 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
/* socket.c */
|
|
||||||
/* the Socket class */
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2008 Aris Adamantiadis
|
* socket.c - socket functions for the library
|
||||||
*
|
*
|
||||||
* This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
*
|
*
|
||||||
|
* Copyright (c) 2008 by Aris Adamantiadis
|
||||||
|
*
|
||||||
* The SSH Library is free software; you can redistribute it and/or modify
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Lesser General Public License as published by
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
@@ -18,7 +18,10 @@
|
|||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with the SSH Library; see the file COPYING. If not, write to
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
* MA 02111-1307, USA. */
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|||||||
@@ -1,27 +1,33 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2003-2008 Aris Adamantiadis
|
* string.c - ssh string functions
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* This file is part of the SSH Library
|
||||||
|
*
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* Copyright (c) 2003-2008 by Aris Adamantiadis
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
*
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
option) any later version.
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
The SSH Library is distributed in the hope that it will be useful, but
|
* option) any later version.
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
*
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
* The SSH Library is distributed in the hope that it will be useful, but
|
||||||
License for more details.
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
* License for more details.
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
*
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
MA 02111-1307, USA. */
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "libssh/priv.h"
|
#include "libssh/priv.h"
|
||||||
|
|
||||||
/** \defgroup ssh_string SSH Strings
|
/** \defgroup ssh_string SSH Strings
|
||||||
* \brief string manipulations
|
* \brief string manipulations
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,29 +1,37 @@
|
|||||||
/* wrapper.c */
|
/*
|
||||||
/* wrapping functions for crypto functions. */
|
* wrapper.c - wrapper for crytpo functions
|
||||||
/* why a wrapper ? let's say you want to port libssh from libcrypto of openssl to libfoo */
|
*
|
||||||
/* you are going to spend hours to remove every references to SHA1_Update() to libfoo_sha1_update */
|
* This file is part of the SSH Library
|
||||||
/* after the work is finished, you're going to have only this file to modify */
|
*
|
||||||
/* it's not needed to say that your modifications are welcome */
|
* Copyright (c) 2003 by Aris Adamantiadis
|
||||||
|
*
|
||||||
|
* The SSH Library is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
||||||
|
* option) any later version.
|
||||||
|
*
|
||||||
|
* The SSH Library 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 Lesser General Public
|
||||||
|
* License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with the SSH Library; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
* MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* vim: ts=2 sw=2 et cindent
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2003 Aris Adamantiadis
|
* Why a wrapper?
|
||||||
|
*
|
||||||
This file is part of the SSH Library
|
* Let's say you want to port libssh from libcrypto of openssl to libfoo
|
||||||
|
* you are going to spend hours to remove every references to SHA1_Update()
|
||||||
The SSH Library is free software; you can redistribute it and/or modify
|
* to libfoo_sha1_update after the work is finished, you're going to have
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
* only this file to modify it's not needed to say that your modifications
|
||||||
the Free Software Foundation; either version 2.1 of the License, or (at your
|
* are welcome.
|
||||||
option) any later version.
|
*/
|
||||||
|
|
||||||
The SSH Library 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 Lesser General Public
|
|
||||||
License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
|
||||||
along with the SSH Library; see the file COPYING. If not, write to
|
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
|
||||||
MA 02111-1307, USA. */
|
|
||||||
|
|
||||||
#include "libssh/priv.h"
|
#include "libssh/priv.h"
|
||||||
#include "libssh/crypto.h"
|
#include "libssh/crypto.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user