Skip to content

Commit

Permalink
Update libgit2 (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss authored Dec 16, 2020
1 parent 9a1e906 commit e42d595
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions libgit2-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ fn main() {
// when when COMPILE_PCRE8 is not defined, which is the default.
add_c_files(&mut cfg, "libgit2/deps/pcre");

cfg.file("libgit2/src/allocators/failalloc.c");
cfg.file("libgit2/src/allocators/stdalloc.c");

if windows {
Expand Down
11 changes: 11 additions & 0 deletions libgit2-sys/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,9 @@ pub struct git_cert_hostkey {
pub hash_md5: [u8; 16],
pub hash_sha1: [u8; 20],
pub hash_sha256: [u8; 32],
pub raw_type: git_cert_ssh_raw_type_t,
pub hostkey: *const c_char,
pub hostkey_len: size_t,
}

#[repr(C)]
Expand All @@ -473,6 +476,14 @@ git_enum! {
}
}

git_enum! {
pub enum git_cert_ssh_raw_type_t {
GIT_CERT_SSH_RAW_TYPE_UNKNOWN = 0,
GIT_CERT_SSH_RAW_TYPE_RSA = 1,
GIT_CERT_SSH_RAW_TYPE_DSS = 2,
}
}

git_enum! {
pub enum git_diff_flag_t {
GIT_DIFF_FLAG_BINARY = 1 << 0,
Expand Down
2 changes: 1 addition & 1 deletion libgit2-sys/libgit2
Submodule libgit2 updated 228 files

0 comments on commit e42d595

Please sign in to comment.