Commit graph

21 commits

Author SHA1 Message Date
Todd Mortimer
826e6d413b Fix tests and examples. 2021-07-17 16:51:35 -04:00
mordak
7204697dd9
Add ClientBuilder helper to make setting up TLS connections easy. (#197)
Also replaces connect() and connect_starttls() with ClientBuilder.
2021-05-10 22:39:46 -04:00
Jon Gjengset
bce4831ccb
Clippy clean 2018-11-22 14:27:07 -05:00
Jon Gjengset
f83742dc3d
A significant documentation upgrade
Fixes #77.
Touches on #74.
Fixes #70 through documentation (I think?)
Fixes #62.
2018-11-21 16:37:47 -05:00
Kim Minh Kaplan
c2c7e2a3f7 In Authenticator::process change the challenge from a Vec<u8> to a &[u8] 2018-11-10 08:54:46 +00:00
Kim Minh Kaplan
892fe49a68 Decode the Base64 AUTHENTICATE challenge 2018-11-09 22:35:22 +00:00
Kim Minh Kaplan
1dd55ff066 Move Authenticator to returning an AsRef<u8>. 2018-11-09 22:35:12 +00:00
Johannes Schilling
abad1f4171 adjust examples to the latest changes 2018-08-29 16:08:53 +02:00
Johannes Schilling
3d6dd58f19 adjust examples to Client/UnauthenticatedClient splitup 2018-08-11 13:41:48 +02:00
Shaun Savage
a11c4e5673 TlsConnector::build() unwrap() not needed 2018-06-26 20:10:11 +00:00
Jon Gjengset
1d4d6288c1
rustfmt 2018-04-03 13:01:35 -04:00
Curtis McEnroe
6b4461eb07
Borrow TlsConnector
TlsConnector is meant to be reusable and there is no reason to take
ownership over one.
2018-03-18 22:18:15 -04:00
Jon Gjengset
590b80e3a6 Add structured results for all values using imap-proto (#58)
* First stab at structured types (#28)

Tests currently fail due to djc/imap-proto#2.

LSUB is also broken due to djc/imap-proto#4 (but we don't have tests for
that atm).

* Also parse out RFC822 fetch responses

* Make all the things zero-copy

* Also delegate IntoIterator for ZeroCopy ref

* Fix UNSEEN and LSUB

All tests now pass

* Address @sanmai-NL comments

* Correctly handle incomplete parser responses

* No need for git dep anymore
2018-02-09 11:22:20 -05:00
Jon Gjengset
7c95ae76d6 Swap openssl for native-tls (#43)
* Replace openssl with native-tls

* Add From<TlsError> to allow builder()?

* Update AppVeyor config

* No email since it's not configured
2017-10-01 19:53:03 -04:00
Jon Gjengset
e65bbe1006
rustfmt. fixes #29 2017-09-30 17:58:30 -04:00
Matt McCoy
86e1d46507 rustfmt the codebase (#36)
This will ensure that we are properly formatting this library code according to rust standards
2017-07-10 21:38:13 -04:00
Matt McCoy
3b6816b732 Updating version 2017-05-02 21:57:45 -04:00
drevilt
89a8d0eaf3 update to openssl 0.9 (#31) 2017-05-01 15:39:12 -04:00
Matt McCoy
ed03acf07d Fixing formatting for gmail_oauth2 example 2016-06-29 19:38:55 -04:00
Matt McCoy
8d39bfd343 Hardening the oauth2 example for gmail 2016-06-28 22:29:55 -04:00
Matt McCoy
8a1162ada4 Initial testing for authentication 2016-06-28 21:48:25 -04:00