Skip to content

Commit

Permalink
fiddle with types
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Theil <[email protected]>
  • Loading branch information
thillux committed Oct 12, 2023
1 parent a21aa01 commit 8472aff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openssl-sys/src/handwritten/x509_sbgp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub unsafe fn X509v3_addr_get_afi(f: *mut IPAddressFamily) -> c_int {
0
} else {
let raw = ASN1_STRING_get0_data(d);
((*raw.offset(0) as i32) << 8) | *raw.offset(1) as i32
((*raw.offset(0) as c_int) << 8) | *raw.offset(1) as c_int
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions openssl/src/x509/sbgp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl ASIdentifiers {
if (*asnum).type_ != ASIdentifierChoice_asIdsOrRanges {
return None;
}
if let Some(s) = StackRef::<ASIdOrRange>::from_const_ptr_opt((*asnum).asIdsOrRanges) {
if let Some(s) = StackRef::<ASIdOrRange>::from_const_ptr_opt((*asnum).u.asIdsOrRanges) {
for a_ptr in s {
let a = a_ptr.as_ptr();
if (*a).type_ == ASIdOrRange_id {
Expand Down Expand Up @@ -150,7 +150,7 @@ impl IPAddressFamily {
return None;
}
let stack =
StackRef::<IPAddressOrRange>::from_const_ptr_opt((*choice).addressesOrRanges)?;
StackRef::<IPAddressOrRange>::from_const_ptr_opt((*choice).u.addressesOrRanges)?;
for e in stack {
let mut min = MaybeUninit::<[u8; 16]>::uninit();
let mut max = MaybeUninit::<[u8; 16]>::uninit();
Expand Down

0 comments on commit 8472aff

Please sign in to comment.