diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-03-26 20:53:02 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-03-26 20:53:02 +0000 |
| commit | 4438476ea07f171ef4909f0882b490dfcfb7094c (patch) | |
| tree | dc97155b76965cf7b7b5bedf7efa2389fb94c793 /src/lib/internet.h | |
| parent | 41b7a04cf3dedaa93aaf3c050db7a693281417f7 (diff) | |
Some more certificate download improvements.
Diffstat (limited to 'src/lib/internet.h')
| -rw-r--r-- | src/lib/internet.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/lib/internet.h b/src/lib/internet.h new file mode 100644 index 000000000..d7427fe48 --- /dev/null +++ b/src/lib/internet.h @@ -0,0 +1,25 @@ +/* + Copyright (C) 2014 Carl Hetherington <cth@carlh.net> + + This program 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. + + This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +#include <boost/optional.hpp> +#include <boost/function.hpp> +#include <boost/filesystem.hpp> + +boost::optional<std::string> get_from_zip_url (std::string url, std::string file, boost::function<void (boost::filesystem::path)> load); +std::list<std::string> ftp_ls (std::string dir); |
