comparison dstep/coreservices/cfnetwork/CFHTTPAuthentication.d @ 11:07194b026fa4

Added bindings to a couple of frameworks, new license + some other things
author Jacob Carlborg <doob@me.com>
date Sat, 01 Aug 2009 15:03:28 +0200
parents
children
comparison
equal deleted inserted replaced
10:27e00625790b 11:07194b026fa4
1 /**
2 * Copyright: Copyright (c) 2009 Jacob Carlborg.
3 * Authors: Jacob Carlborg
4 * Version: Initial created: Jul 22, 2009
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
6 */
7 module dstep.coreservices.cfnetwork.CFHTTPAuthentication;
8
9 //import dstep.Availability;
10 import dstep.coreservices.cfnetwork.CFHTTPMessage;
11 import dstep.coreservices.cfnetwork.CFNetworkDefs;
12 import dstep.corefoundation.CoreFoundation;
13
14 struct _CFHTTPAuthentication;
15
16 alias _CFHTTPAuthentication* CFHTTPAuthenticationRef;
17 alias int CFStreamErrorHTTPAuthentication;
18
19 extern (C)
20 {
21 extern
22 {
23 const CFStringRef kCFHTTPAuthenticationUsername;
24 const CFStringRef kCFHTTPAuthenticationPassword;
25 const CFStringRef kCFHTTPAuthenticationAccountDomain;
26 }
27 }
28
29 enum /*CFStreamErrorHTTPAuthentication*/
30 {
31 kCFStreamErrorHTTPAuthenticationTypeUnsupported = -1000,
32 kCFStreamErrorHTTPAuthenticationBadUserName = -1001,
33 kCFStreamErrorHTTPAuthenticationBadPassword = -1002
34 }
35
36 extern (C)
37 {
38 uint CFHTTPAuthenticationGetTypeID ();
39 CFHTTPAuthenticationRef CFHTTPAuthenticationCreateFromResponse (CFAllocatorRef alloc, CFHTTPMessageRef response);
40 ubyte CFHTTPAuthenticationIsValid (CFHTTPAuthenticationRef auth, CFStreamError* error);
41 ubyte CFHTTPAuthenticationAppliesToRequest (CFHTTPAuthenticationRef auth, CFHTTPMessageRef request);
42 ubyte CFHTTPAuthenticationRequiresOrderedRequests (CFHTTPAuthenticationRef auth);
43 ubyte CFHTTPMessageApplyCredentials (CFHTTPMessageRef request, CFHTTPAuthenticationRef auth, CFStringRef username, CFStringRef password, CFStreamError* error);
44 ubyte CFHTTPMessageApplyCredentialDictionary (CFHTTPMessageRef request, CFHTTPAuthenticationRef auth, CFDictionaryRef dict, CFStreamError* error);
45 CFStringRef CFHTTPAuthenticationCopyRealm (CFHTTPAuthenticationRef auth);
46 CFArrayRef CFHTTPAuthenticationCopyDomains (CFHTTPAuthenticationRef auth);
47 CFStringRef CFHTTPAuthenticationCopyMethod (CFHTTPAuthenticationRef auth);
48 ubyte CFHTTPAuthenticationRequiresUserNameAndPassword (CFHTTPAuthenticationRef auth);
49 ubyte CFHTTPAuthenticationRequiresAccountDomain (CFHTTPAuthenticationRef auth);
50 }