Skip to content

Commit e42d595

Browse files
authored
Update libgit2 (#642)
1 parent 9a1e906 commit e42d595

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

libgit2-sys/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ fn main() {
7878
// when when COMPILE_PCRE8 is not defined, which is the default.
7979
add_c_files(&mut cfg, "libgit2/deps/pcre");
8080

81+
cfg.file("libgit2/src/allocators/failalloc.c");
8182
cfg.file("libgit2/src/allocators/stdalloc.c");
8283

8384
if windows {

libgit2-sys/lib.rs

+11
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,9 @@ pub struct git_cert_hostkey {
456456
pub hash_md5: [u8; 16],
457457
pub hash_sha1: [u8; 20],
458458
pub hash_sha256: [u8; 32],
459+
pub raw_type: git_cert_ssh_raw_type_t,
460+
pub hostkey: *const c_char,
461+
pub hostkey_len: size_t,
459462
}
460463

461464
#[repr(C)]
@@ -473,6 +476,14 @@ git_enum! {
473476
}
474477
}
475478

479+
git_enum! {
480+
pub enum git_cert_ssh_raw_type_t {
481+
GIT_CERT_SSH_RAW_TYPE_UNKNOWN = 0,
482+
GIT_CERT_SSH_RAW_TYPE_RSA = 1,
483+
GIT_CERT_SSH_RAW_TYPE_DSS = 2,
484+
}
485+
}
486+
476487
git_enum! {
477488
pub enum git_diff_flag_t {
478489
GIT_DIFF_FLAG_BINARY = 1 << 0,

libgit2-sys/libgit2

Submodule libgit2 updated 228 files

0 commit comments

Comments
 (0)