equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtNetwork module of the Qt Toolkit. |
7 ** This file is part of the QtNetwork module of the Qt Toolkit. |
8 ** |
8 ** |
268 if (user.isEmpty()) |
268 if (user.isEmpty()) |
269 phase = Done; |
269 phase = Done; |
270 break; |
270 break; |
271 case Ntlm: |
271 case Ntlm: |
272 // #### extract from header |
272 // #### extract from header |
273 realm = QString(); |
273 realm.clear(); |
274 break; |
274 break; |
275 case DigestMd5: { |
275 case DigestMd5: { |
276 realm = QString::fromLatin1(options.value("realm")); |
276 realm = QString::fromLatin1(options.value("realm")); |
277 if (options.value("stale").toLower() == "true") |
277 if (options.value("stale").toLower() == "true") |
278 phase = Start; |
278 phase = Start; |
279 if (user.isEmpty()) |
279 if (user.isEmpty()) |
280 phase = Done; |
280 phase = Done; |
281 break; |
281 break; |
282 } |
282 } |
283 default: |
283 default: |
284 realm = QString(); |
284 realm.clear(); |
285 challenge = QByteArray(); |
285 challenge = QByteArray(); |
286 phase = Invalid; |
286 phase = Invalid; |
287 } |
287 } |
288 } |
288 } |
289 #endif |
289 #endif |