|
41 | 41 | @protocol SCSoundCloudAPIPrivateAuthenticationDelegate <NSObject, SCSoundCloudAPIAuthenticationDelegate>
|
42 | 42 |
|
43 | 43 | - (NXOAuth2TrustMode)soundCloudAPITrustModeForHostname:(NSString *)hostname;
|
44 |
| -- (NSData *)soundCloudAPITrustedCertificateDERDataForHostname:(NSString *)hostname; |
| 44 | +- (NSArray *)soundCloudAPITrustedCertificatesDERDataForHostname:(NSString *)hostname; |
45 | 45 |
|
46 | 46 | @end
|
47 | 47 |
|
@@ -136,12 +136,12 @@ - (NSInteger)trustModeForHostname:(NSString *)hostname;
|
136 | 136 | return NXOAuth2TrustModeSystem;
|
137 | 137 | }
|
138 | 138 |
|
139 |
| -- (NSData *)trustedCertificateDERDataForHostname:(NSString *)hostname; |
| 139 | +- (NSArray *)trustedCertificatesDERDataForHostname:(NSString *)hostname; |
140 | 140 | {
|
141 |
| - if ([self.privateDelegate respondsToSelector:@selector(soundCloudAPITrustedCertificateDERDataForHostname:)]) { |
142 |
| - return [self.privateDelegate soundCloudAPITrustedCertificateDERDataForHostname:hostname]; |
| 141 | + if ([self.privateDelegate respondsToSelector:@selector(soundCloudAPITrustedCertificatesDERDataForHostname:)]) { |
| 142 | + return [self.privateDelegate soundCloudAPITrustedCertificatesDERDataForHostname:hostname]; |
143 | 143 | }
|
144 |
| - NSAssert(NO, @"You need to implement soundCloudAPITrustedCertificateDERDataForHostname: in the delegate if you specify NXOAuth2TrustModeSpecificCertificate"); |
| 144 | + NSAssert(NO, @"You need to implement soundCloudAPITrustedCertificatesDERDataForHostname: in the delegate if you specify NXOAuth2TrustModeSpecificCertificate"); |
145 | 145 | return nil;
|
146 | 146 | }
|
147 | 147 |
|
@@ -192,9 +192,9 @@ - (NXOAuth2TrustMode)oauthClient:(NXOAuth2Client *)client trustModeForTokenReque
|
192 | 192 | return [self trustModeForHostname:hostname];
|
193 | 193 | }
|
194 | 194 |
|
195 |
| -- (NSData *)oauthClient:(NXOAuth2Client *)client trustedCertificateDERDataForTokenRequestOnHostname:(NSString *)hostname; |
| 195 | +- (NSArray *)oauthClient:(NXOAuth2Client *)client trustedCertificatesDERDataForTokenRequestOnHostname:(NSString *)hostname; |
196 | 196 | {
|
197 |
| - return [self trustedCertificateDERDataForHostname:hostname]; |
| 197 | + return [self trustedCertificatesDERDataForHostname:hostname]; |
198 | 198 | }
|
199 | 199 |
|
200 | 200 |
|
|
0 commit comments