File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
tss-esapi/src/context/tpm_commands Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -96,13 +96,13 @@ pub fn generate_from_system(esapi_out: PathBuf) {
96
96
. expect ( "Error converting OsString to String." ) ;
97
97
98
98
bindgen:: Builder :: default ( )
99
- . clang_arg ( format ! ( "-I{}/tss2/" , tss2_esys_include_path ) )
100
- . clang_arg ( format ! ( "-I{}/tss2/" , tss2_tctildr_include_path ) )
101
- . clang_arg ( format ! ( "-I{}/tss2/" , tss2_mu_include_path ) )
99
+ . clang_arg ( format ! ( "-I{tss2_esys_include_path }/tss2/" ) )
100
+ . clang_arg ( format ! ( "-I{tss2_tctildr_include_path }/tss2/" ) )
101
+ . clang_arg ( format ! ( "-I{tss2_mu_include_path }/tss2/" ) )
102
102
. rustfmt_bindings ( true )
103
- . header ( format ! ( "{}/tss2/tss2_esys.h" , tss2_esys_include_path ) )
104
- . header ( format ! ( "{}/tss2/tss2_tctildr.h" , tss2_tctildr_include_path ) )
105
- . header ( format ! ( "{}/tss2/tss2_mu.h" , tss2_mu_include_path ) )
103
+ . header ( format ! ( "{tss2_esys_include_path }/tss2/tss2_esys.h" ) )
104
+ . header ( format ! ( "{tss2_tctildr_include_path }/tss2/tss2_tctildr.h" ) )
105
+ . header ( format ! ( "{tss2_mu_include_path }/tss2/tss2_mu.h" ) )
106
106
// See this issue: https://github.com/parallaxsecond/rust-cryptoki/issues/12
107
107
. blocklist_type ( "max_align_t" )
108
108
. generate_comments ( false )
Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ impl Context {
430
430
self . optional_session_3 ( ) ,
431
431
& object_name. into ( ) ,
432
432
& new_parent_name. into ( ) ,
433
- if include_object { 1 } else { 0 } ,
433
+ u8 :: from ( include_object) ,
434
434
)
435
435
} ;
436
436
let ret = Error :: from_tss_rc ( ret) ;
You can’t perform that action at this time.
0 commit comments