diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-11-02 18:51:18 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-11-02 18:51:18 +0300 |
commit | 4cba5cf8133e8ecef7953416a4e540b1cf533342 (patch) | |
tree | fb3570511f6dea667b7c132117aaaeca1521ae65 /src/url.h | |
parent | 1ce9ce321a4d4076504adfbf2503364768d5124f (diff) | |
download | rspamd-4cba5cf8133e8ecef7953416a4e540b1cf533342.tar.gz rspamd-4cba5cf8133e8ecef7953416a4e540b1cf533342.zip |
* Add phishing detector (now just compares <a href> with tag's data).
Diffstat (limited to 'src/url.h')
-rw-r--r-- | src/url.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -41,8 +41,9 @@ struct uri { guint fragmentlen; /* Flags */ - guint ipv6; /* URI contains IPv6 host */ - guint form; /* URI originated from form */ + gboolean ipv6; /* URI contains IPv6 host */ + gboolean form; /* URI originated from form */ + gboolean is_phished; /* URI maybe phishing */ }; enum uri_errno { @@ -73,5 +74,7 @@ enum protocol { void url_parse_text (memory_pool_t *pool, struct worker_task *task, struct mime_text_part *part, gboolean is_html); enum uri_errno parse_uri(struct uri *uri, gchar *uristring, memory_pool_t *pool); +gboolean url_try_text (memory_pool_t *pool, const gchar *begin, gsize len, gint *res, gchar **url_str); +const gchar* url_strerror (enum uri_errno err); #endif |