Commit graph

156 commits

Author SHA1 Message Date
Mattt Thompson
9cbc749d40 Renaming allowInvalidSSLCertificate -> allowsInvalidSSLCertificate 2013-04-17 18:38:44 +02:00
Mattt Thompson
174bc47c84 Minor refactoring / renaming / copy edits 2013-04-17 18:28:08 +02:00
Mattt Thompson
8ea42866b8 Merge branch 'invalid-ssl' of git://github.com/kcharwood/AFNetworking into kcharwood-invalid-ssl 2013-04-17 18:04:50 +02:00
Jean-Francois Morin
472ba1c66a Replace NSData by NSUInteger in connection:didReceiveData:
Signed-off-by: Mattt Thompson <m@mattt.me>
2013-04-16 11:00:26 +03:00
Kevin Harwood
22d6747b74 Merge branch 'master' into invalid-ssl 2013-04-09 08:48:56 -05:00
Kevin Harwood
fa9fa6e0d4 Fixed if/else logic 2013-04-09 08:47:26 -05:00
Kevin Harwood
e6807f4176 Merge branch 'master' into invalid-ssl 2013-04-08 09:52:42 -05:00
Oliver Letterer
ae6b3bb368 Now using NSParameterAssert instead of NSCParameterAssert. 2013-04-08 14:04:43 +02:00
Oliver Letterer
ecbe8166cd Now using errSecSuccess instead of noErr for Security frameworks OSStatus. 2013-04-08 14:04:08 +02:00
Oliver Letterer
f51a762772 Merges master. 2013-04-07 18:26:16 +02:00
Kevin Harwood
e016c731d3 Merged upstream/master back to resolve conflicts 2013-04-07 08:15:07 -05:00
Oliver Letterer
8b2d01a503 Fixes SecTrustCreateWithCertificates expecting an array as first argument. 2013-04-07 08:29:29 +02:00
Kevin Harwood
1d1378d9aa Merge remote-tracking branch 'upstream/master' into invalid-ssl
Conflicts:
	AFNetworking/AFURLConnectionOperation.h
2013-04-06 16:31:28 -05:00
Kevin Harwood
158db930ff Revert "Added guard around adding a NULL object to an array"
This reverts commit c8e420990e.
2013-04-06 15:46:50 -05:00
Kevin Harwood
c8e420990e Added guard around adding a NULL object to an array 2013-04-06 15:02:57 -05:00
Kevin Harwood
5b633898b3 Clean up 2013-04-06 11:33:29 -05:00
Kevin Harwood
ebccca44da Fixed SSL Pinning
- SSL Pinning switch case was not being applied if a .cer file was found in the bundle.
- SSL Public Key pinning was broken because we didn't make a call to SecTrustEvaluate before SecTrustCopyPublicKey
2013-04-06 11:30:47 -05:00
Peter Steinberger
bab6a8b28f Set AFNetworking thread name
Signed-off-by: Mattt Thompson <m@mattt.me>
2013-04-06 12:42:01 +02:00
Oliver Letterer
a0f1f83a2b Pinning certificates will now trust all derived certificates. 2013-03-28 08:34:44 +01:00
Kevin Harwood
48558d7b48 Removed invalid SSL macro from new 1.2.0 code 2013-03-25 17:15:43 -05:00
Kevin Harwood
bcb8aea682 Merge branch 'master' into invalid-ssl 2013-03-25 17:11:42 -05:00
Mattt Thompson
9b2a20c0a1 Merge branch 'experimental-ssl-pinning' 2013-03-24 00:57:16 -04:00
Oliver Letterer
1bfed80989 Adds AFSSLPinningModeNone. 2013-03-24 00:51:16 -04:00
Blake Watters
db305db733 Rework delivery of AFNetworkingOperationDidStartNotification and AFNetworkingOperationDidFinishNotification to avoid crashes when logging in response to notifications 2013-03-06 21:40:56 -05:00
Oliver Letterer
580c547616 Fixes -[AFURLConnectionOperation totalBytesRead] threading issue. 2013-02-26 08:37:18 +01:00
Mattt Thompson
8e6202b134 Fixing compiler warnings in SSL pinning initializers
Minor refactoring
2013-02-08 14:37:17 +01:00
Mattt Thompson
0e18f85bfb Replacing #ifdef macro check for Security to _AFNETWORKING_PIN_SSL_CERTIFICATES_ 2013-02-08 14:21:52 +01:00
Mattt Thompson
8cd63afe76 Stashing merge 2013-02-06 14:03:22 +01:00
Mattt Thompson
447fb3a913 Adding lock around AFURLConnectionOperation -responseStringEncoding
Adding check for self.response in AFURLConnectionOperation -responseStringEncoding
2013-02-04 00:01:14 +01:00
Oliver Jones
6b8cdf1581 Fixes warning: multiple methods named 'postNotificationName:object:' found [-Wstrict-selector-match] 2013-02-01 02:42:58 +00:00
Kevin Harwood
9ba4838862 Added in a property to handle invalid SSL certs 2013-01-30 10:26:01 -06:00
Mattt Thompson
2c55ad7abc Merge branch 'experimental-issue-738'
Conflicts:
	AFNetworking/AFURLConnectionOperation.m
2013-01-27 13:26:04 -05:00
Mattt Thompson
83da1edd13 Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
Mattt Thompson
6e69da9feb Using early return in AFURLConnectionOperation -setState: to avoid posting notifications in lock 2013-01-26 10:47:11 -05:00
Cédric Luthi
7abc97881e Rename the username variable to user 2013-01-18 15:08:29 +01:00
Cédric Luthi
74346addea Use NSURL methods instead of CFURL functions
* Replace CFURLCopyUserName with -[NSURL user]
* Replace CFURLCopyPassword with -[NSURL password]
2013-01-18 15:06:14 +01:00
Mattt Thompson
9aeb38649b [Issue #719] Adding shouldUseCredentialStorage property to AFURLConnectionOperation /thanks Xihe Yu 2013-01-06 20:44:48 -08:00
Mattt Thompson
1e7c45c191 Marking connection parameter in connection:needNewBodyStream: as __unused 2013-01-06 20:39:59 -08:00
Mattt Thompson
b66c21b0f2 Re-ordering NSURLConnectionDelegate method implementations 2013-01-05 23:48:48 -08:00
Mattt Thompson
23d3bd5af4 Minor reformatting 2013-01-05 23:40:34 -08:00
Alex Burgel
ecf6899d5f Fix request stream exhaustion error by copying the original NSInputStream 2013-01-05 15:10:47 -05:00
Mattt Thompson
1d243f7794 Adding credential property to AFURLConnectionOperation 2013-01-04 12:41:25 -08:00
Oliver Letterer
80bb2ea527 Gets rid of for loop to check if public key is present. 2012-12-29 13:10:14 +01:00
Oliver Letterer
3b1a098701 Fixes memory leak. 2012-12-29 13:06:52 +01:00
Oliver Letterer
b1f9598ed2 Adds SSLPinningMode to AFURLConnectionOperation and defaultSSLPinMode to AFHTTPClient. 2012-12-28 11:48:42 +01:00
Mattt Thompson
a9b9ebee37 Asynchronously posting all notifications by dispatching to main 2012-12-27 12:22:46 -05:00
Evadne Wu
7b685fe35e dispatches network request start / end notifications asynchronously
Signed-off-by: Mattt Thompson <m@mattt.me>
2012-12-27 12:20:02 -05:00
Mattt Thompson
732cd2da02 [Issue #686][Issue #168] Adding userInfo @property /cc @tewha 2012-12-26 10:29:57 -05:00
Mattt Thompson
fd00b0a5ad Merge branch 'bug/wStrict-selector-match' of https://github.com/jessedc/AFNetworking into jessedc-bug/wStrict-selector-match 2012-12-26 09:58:07 -05:00
Mattt Thompson
e75dea4fd1 Minor code formatting 2012-12-26 09:57:15 -05:00