projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* added functions for getting authentication, security protocols
[modest]
/
src
/
modest-proto.c
diff --git
a/src/modest-proto.c
b/src/modest-proto.c
index
3796453
..
e92da4e
100644
(file)
--- a/
src/modest-proto.c
+++ b/
src/modest-proto.c
@@
-46,6
+46,20
@@
static const gchar* store_protos[] = {
NULL
};
NULL
};
+
+static const gchar* security_protos[] = {
+ MODEST_SECURITY_PROTO_NONE,
+ MODEST_SECURITY_PROTO_SSL,
+ MODEST_SECURITY_PROTO_TLS,
+ NULL
+};
+
+static const gchar* auth_protos[] = {
+ MODEST_AUTH_PROTO_PASSWORD,
+ NULL
+};
+
+
gboolean
modest_proto_is_valid (const gchar *proto, gboolean store_proto)
{
gboolean
modest_proto_is_valid (const gchar *proto, gboolean store_proto)
{
@@
-92,3
+106,16
@@
modest_proto_transport_protos (void)
{
return (const gchar**) transport_protos;
}
{
return (const gchar**) transport_protos;
}
+
+const gchar**
+modest_proto_security_protos (void)
+{
+ return (const gchar**) security_protos;
+}
+
+const gchar**
+modest_proto_auth_protos (void)
+{
+ return (const gchar**) auth_protos;
+}
+