1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* soup-misc.h: Miscellaneous settings and configuration file handling.
*
* Authors:
* Alex Graveley (alex@ximian.com)
*
* Copyright (C) 2000-2002, Ximian, Inc.
*/
#ifndef SOUP_MISC_H
#define SOUP_MISC_H 1
#include <glib.h>
#include <libsoup/soup-types.h>
#include <libsoup/soup-uri.h>
/* Configuration routines */
void soup_load_config (gchar *config_file);
void soup_shutdown (void);
/* SSL setup routines */
void soup_set_ssl_ca_file (const gchar *ca_file);
void soup_set_ssl_ca_dir (const gchar *ca_dir);
void soup_set_ssl_cert_files (const gchar *cert_file,
const gchar *key_file);
const char *soup_get_ssl_ca_file (void);
const char *soup_get_ssl_ca_dir (void);
void soup_get_ssl_cert_files (const gchar **cert_file,
const gchar **key_file);
/* Base64 encoding/decoding */
gchar *soup_base64_encode (const gchar *text,
gint len);
int soup_base64_encode_close (const guchar *in,
int inlen,
gboolean break_lines,
guchar *out,
int *state,
int *save);
int soup_base64_encode_step (const guchar *in,
int len,
gboolean break_lines,
guchar *out,
int *state,
int *save);
gchar *soup_base64_decode (const gchar *text,
gint *out_len);
int soup_base64_decode_step (const guchar *in,
int len,
guchar *out,
int *state,
guint *save);
#endif /* SOUP_MISC_H */
|