|
10 | 10 | #import "git2/transport.h" |
11 | 11 |
|
12 | 12 | /// An enum describing the data needed for authentication. |
13 | | -/// See `git_credtype_t`. |
| 13 | +/// See `git_credential_t`. |
14 | 14 | typedef NS_ENUM(NSInteger, GTCredentialType) { |
15 | | - GTCredentialTypeUserPassPlaintext = GIT_CREDTYPE_USERPASS_PLAINTEXT, |
16 | | - GTCredentialTypeSSHKey = GIT_CREDTYPE_SSH_KEY, |
17 | | - GTCredentialTypeSSHCustom = GIT_CREDTYPE_SSH_CUSTOM, |
| 15 | + GTCredentialTypeUserPassPlaintext = GIT_CREDENTIAL_USERPASS_PLAINTEXT, |
| 16 | + GTCredentialTypeSSHKey = GIT_CREDENTIAL_SSH_KEY, |
| 17 | + GTCredentialTypeSSHCustom = GIT_CREDENTIAL_SSH_CUSTOM, |
18 | 18 | }; |
19 | 19 |
|
20 | 20 | NS_ASSUME_NONNULL_BEGIN |
@@ -50,7 +50,7 @@ NS_ASSUME_NONNULL_BEGIN |
50 | 50 | @end |
51 | 51 |
|
52 | 52 | /// The GTCredential class is used to provide authentication data. |
53 | | -/// It acts as a wrapper around `git_cred` objects. |
| 53 | +/// It acts as a wrapper around `git_credential` objects. |
54 | 54 | @interface GTCredential : NSObject |
55 | 55 |
|
56 | 56 | /// Create a credential object from a username/password pair. |
@@ -86,8 +86,8 @@ NS_ASSUME_NONNULL_BEGIN |
86 | 86 | /// Return a new GTCredential instance, or nil if an error occurred |
87 | 87 | + (instancetype _Nullable)credentialWithUserName:(NSString *)userName publicKeyString:(NSString * _Nullable)publicKeyString privateKeyString:(NSString *)privateKeyString passphrase:(NSString * _Nullable)passphrase error:(NSError **)error; |
88 | 88 |
|
89 | | -/// The underlying `git_cred` object. |
90 | | -- (git_cred *)git_cred __attribute__((objc_returns_inner_pointer)); |
| 89 | +/// The underlying `git_credential` object. |
| 90 | +- (git_credential *)git_credential __attribute__((objc_returns_inner_pointer)); |
91 | 91 |
|
92 | 92 | @end |
93 | 93 |
|
|
0 commit comments