curl-library
RE: CURL SMTP - Bypass Authentication
Date: Tue, 25 Mar 2014 15:51:59 +0900
Dear Steve,
Thanks a lot for your reply. Changes suggested by you has solved the
issue. I have tested it on latest code base.
lib/smtp.c- smtp_perform_authentication()
>Replace the following line (line 486):
> if(!conn->bits.user_passwd) {
>With:
>if(!conn->bits.user_passwd || !smtpc->authmechs) {
>You'll also need to insert the following at line 483 as smtpc is not
>declared in this function:
>struct smtp_conn *smtpc = &conn->proto.smtpc;
Now my test case is not hitting the following code block
> infof(conn->data, "No known authentication mechanisms supported!\n");
> result = CURLE_LOGIN_DENIED;
>
Thanks and Best Regards
Tom
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-03-25