Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
2aee4642
Commit
2aee4642
authored
Aug 31, 2014
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transport: move the cert type enum to types.h
This should make the mingw compiler happy.
parent
7c8acc54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
+16
-17
include/git2/transport.h
+0
-16
include/git2/types.h
+16
-1
No files found.
include/git2/transport.h
View file @
2aee4642
...
...
@@ -21,22 +21,6 @@
GIT_BEGIN_DECL
/**
* Type of host certificate structure that is passed to the check callback
*/
typedef
enum
git_cert_t
{
/**
* The `data` argument to the callback will be a pointer to
* the DER-encoded data.
*/
GIT_CERT_X509
,
/**
* The `data` argument to the callback will be a pointer to a
* `git_cert_hostkey` structure.
*/
GIT_CERT_HOSTKEY_LIBSSH2
,
}
git_cert_t
;
/**
* Hostkey information taken from libssh2
*/
typedef
struct
{
...
...
include/git2/types.h
View file @
2aee4642
...
...
@@ -254,7 +254,22 @@ typedef int (*git_transfer_progress_cb)(const git_transfer_progress *stats, void
typedef
int
(
*
git_transport_message_cb
)(
const
char
*
str
,
int
len
,
void
*
payload
);
typedef
enum
git_cert_t
git_cert_t
;
/**
* Type of host certificate structure that is passed to the check callback
*/
typedef
enum
git_cert_t
{
/**
* The `data` argument to the callback will be a pointer to
* the DER-encoded data.
*/
GIT_CERT_X509
,
/**
* The `data` argument to the callback will be a pointer to a
* `git_cert_hostkey` structure.
*/
GIT_CERT_HOSTKEY_LIBSSH2
,
}
git_cert_t
;
/**
* Callback for the user's custom certificate checks.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment