2 // Copyright (C) 2017-2018 Red Hat Inc.
4 // This file is part of systemtap, and is free software. You can
5 // redistribute it and/or modify it under the terms of the GNU General
6 // Public License (GPL); either version 2, or (at your option) any
17 #include "nss-server-info.h"
22 void nss_client_query_server_status (systemtap_session
&s
);
23 void nss_client_manage_server_trust (systemtap_session
&s
);
25 class nss_client_backend
: public client_backend
28 nss_client_backend (systemtap_session
&s
);
31 int add_protocol_version (const std::string
&version
);
33 int include_file_or_directory (const std::string
&subdir
,
34 const std::string
&path
,
35 const bool add_arg
= true);
36 int add_tmpdir_file (const std::string
&) { return 0; };
37 int add_cmd_arg (const std::string
&arg
);
39 void add_localization_variable(const std::string
&var
,
40 const std::string
&value
);
41 int finalize_localization_variables();
43 void add_mok_fingerprint(const std::string
&fingerprint
);
44 int finalize_mok_fingerprints();
46 void fill_in_server_info (compile_server_info
&) { return; };
47 int trust_server_info (const compile_server_info
&server
);
49 int package_request ();
50 int find_and_connect_to_server ();
51 int unpack_response ();
55 std::string client_zipfile
;
56 std::string server_zipfile
;
57 std::string locale_vars
;
58 std::ostringstream mok_fingerprints
;
60 std::vector
<std::string
> private_ssl_dbs
;
61 std::vector
<std::string
> public_ssl_dbs
;
63 int compile_using_server (std::vector
<compile_server_info
> &servers
);
64 void show_server_compatibility () const;
68 #endif // CLIENT_NSS_H