00001 #ifndef __arcproxy_utils_functions_h__
00002 #define __arcproxy_utils_functions_h__
00003
00004 #include <string>
00005 #include <vector>
00006
00007 #include <arc/Logger.h>
00008
00009 int create_proxy_file(const std::string& path);
00010 void write_proxy_file(const std::string& path, const std::string& content);
00011 void remove_proxy_file(const std::string& path);
00012 void tls_process_error(Arc::Logger& logger);
00013 #define PASS_MIN_LENGTH (4)
00014 int input_password(char *password, int passwdsz, bool verify,
00015 const std::string& prompt_info,
00016 const std::string& prompt_verify_info,
00017 Arc::Logger& logger);
00018
00019 bool is_file(std::string path);
00020 bool is_dir(std::string path);
00021 std::vector<std::string> search_vomses(std::string path);
00022 std::string tokens_to_string(std::vector<std::string> tokens);
00023
00024 #ifdef HAVE_NSS
00025 std::string get_nssdb_path();
00026 #endif
00027
00028 void tls_process_error(Arc::Logger& logger);
00029
00030 #endif