* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+#ifndef GNUTLS_SRC_BENCHMARK_H
+#define GNUTLS_SRC_BENCHMARK_H
+
#include <sys/time.h>
#include <time.h>
#include <signal.h>
{
return (a->tv_sec - b->tv_sec) * 1000 + (a->tv_nsec - b->tv_nsec) / (1000 * 1000);
}
+
+#endif /* GNUTLS_SRC_BENCHMARK_H */
* Written by Nikos Mavrogiannopoulos <nmav@gnutls.org>.
*/
+#ifndef GNUTLS_SRC_CERTTOOL_CFG_H
+#define GNUTLS_SRC_CERTTOOL_CFG_H
+
#include <stdbool.h>
#include <stdint.h>
#include <gnutls/x509.h>
const char *get_proxy_policy(char **policy, size_t * policylen);
void crq_extensions_set(gnutls_x509_crt_t crt, gnutls_x509_crq_t crq);
+
+#endif /* GNUTLS_SRC_CERTTOOL_CFG_H */
* <https://www.gnu.org/licenses/>.
*/
-#ifndef CERTTOOL_COMMON_H
-#define CERTTOOL_COMMON_H
+#ifndef GNUTLS_SRC_CERTTOOL_COMMON_H
+#define GNUTLS_SRC_CERTTOOL_COMMON_H
#include <gnutls/x509.h>
#include <stdio.h>
void sign_params_to_flags(common_info_st *cinfo, const char *params);
-#endif
+#endif /* GNUTLS_SRC_CERTTOOL_COMMON_H */
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-#ifndef INCLUDE_COMMON_H
-# define INCLUDE_COMMON_H
+#ifndef GNUTLS_SRC_COMMON_H
+#define GNUTLS_SRC_COMMON_H
#define SERVER "127.0.0.1"
# define set_read_funcs(x)
#endif
-#endif
+#endif /* GNUTLS_SRC_COMMON_H */
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+#ifndef GNUTLS_SRC_INLINE_CMDS_H
+#define GNUTLS_SRC_INLINE_CMDS_H
+
/*
* The inline commands is a facility that can be used optionally
* when --inline-commands is set during invocation of gnutls-cli
};
#define NUM_INLINE_COMMANDS ((unsigned)(sizeof(inline_commands_def)/sizeof(inline_commands_def[0])))
+
+#endif /* GNUTLS_SRC_INLINE_CMDS_H */
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#ifndef GNUTLS_SRC_LIST_H
+#define GNUTLS_SRC_LIST_H
+
/*
SOAP:
*/
-
-#ifndef _LIST_H
-#define _LIST_H
-
/* the `search' member points to the last found.
this speeds up repeated searches on the same list-item,
the consecutive list-item, or the pre-consecutive list-item.
free (__t); \
} \
-#endif /* _LIST_H */
+#endif /* GNUTLS_SRC_LIST_H */
* <https://www.gnu.org/licenses/>.
*/
-#ifndef OCSPTOOL_COMMON_H
-#define OCSPTOOL_COMMON_H
+#ifndef GNUTLS_SRC_OCSPTOOL_COMMON_H
+#define GNUTLS_SRC_OCSPTOOL_COMMON_H
#include <gnutls/ocsp.h>
gnutls_datum_t * data, gnutls_datum_t *nonce,
int verbose);
-#endif
+#endif /* GNUTLS_SRC_OCSPTOOL_COMMON_H */
* <https://www.gnu.org/licenses/>.
*/
-#ifndef P11TOOL_H
-#define P11TOOL_H
+#ifndef GNUTLS_SRC_P11TOOL_H
+#define GNUTLS_SRC_P11TOOL_H
#include "certtool-common.h"
#define PKCS11_TYPE_PRIVKEY 5
#define PKCS11_TYPE_INFO 6
-#endif
+#endif /* GNUTLS_SRC_P11TOOL_H */
* <https://www.gnu.org/licenses/>.
*/
+#ifndef GNUTLS_SRC_TESTS_H
+#define GNUTLS_SRC_TESTS_H
+
typedef enum {
TEST_SUCCEED, TEST_FAILED, TEST_UNSURE, TEST_IGNORE/*keep socket*/, TEST_IGNORE2/*destroy socket*/
} test_code_t;
test_code_t test_aes_ccm(gnutls_session_t session);
test_code_t test_aes_ccm_8(gnutls_session_t session);
test_code_t test_sha256(gnutls_session_t session);
+
+#endif /* GNUTLS_SRC_TESTS_H */
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+#ifndef GNUTLS_SRC_UDP_SERV_H
+#define GNUTLS_SRC_UDP_SERV_H
+
#include <gnutls/dtls.h>
void udp_server(const char *name, int port, int mtu);
char *buf, size_t buflen);
int wait_for_connection(void);
int listen_socket(const char *name, int listen_port, int socktype);
+
+#endif /* GNUTLS_SRC_UDP_SERV_H */