diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-09-17 11:56:35 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-09-18 21:37:17 +0200 |
commit | 519291558d5c702775d60253e6b9d9ca9249b59a (patch) | |
tree | cb1899c6ba60224c8cf4337148be9d0d6cc6d0a7 /include/libssh | |
parent | abd9856c6a5bc9a29dd9296125628502b810208e (diff) | |
download | libssh-519291558d5c702775d60253e6b9d9ca9249b59a.tar.gz libssh-519291558d5c702775d60253e6b9d9ca9249b59a.tar.xz libssh-519291558d5c702775d60253e6b9d9ca9249b59a.zip |
priv: Move options and config prototypes to own header.
Diffstat (limited to 'include/libssh')
-rw-r--r-- | include/libssh/options.h | 29 | ||||
-rw-r--r-- | include/libssh/priv.h | 7 |
2 files changed, 29 insertions, 7 deletions
diff --git a/include/libssh/options.h b/include/libssh/options.h new file mode 100644 index 00000000..df28a6f8 --- /dev/null +++ b/include/libssh/options.h @@ -0,0 +1,29 @@ +/* + * This file is part of the SSH Library + * + * Copyright (c) 2011 Andreas Schneider <asn@cryptomilk.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. + */ + +#ifndef _OPTIONS_H +#define _OPTIONS_H + +int ssh_config_parse_file(ssh_session session, const char *filename); +int ssh_options_set_algo(ssh_session session, int algo, const char *list); +int ssh_options_apply(ssh_session session); + +#endif /* _OPTIONS_H */ diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 5c34b17e..9802e387 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -152,9 +152,6 @@ SSH_PACKET_CALLBACK(ssh_packet_dh_reply); SSH_PACKET_CALLBACK(ssh_packet_newkeys); SSH_PACKET_CALLBACK(ssh_packet_service_accept); -/* config.c */ -int ssh_config_parse_file(ssh_session session, const char *filename); - /* errors.c */ #define ssh_set_error(error, code, ...) \ _ssh_set_error(error, code, __FUNCTION__, __VA_ARGS__) @@ -248,10 +245,6 @@ int message_handle(ssh_session session, void *user, uint8_t type, ssh_buffer pac #define leave_function() (void)session #endif -/* options.c */ - -int ssh_options_set_algo(ssh_session session, int algo, const char *list); -int ssh_options_apply(ssh_session session); /* server.c */ SSH_PACKET_CALLBACK(ssh_packet_kexdh_init); |