@@ -99,7 +99,6 @@ pub struct AppCheckerSha256 {
9999}
100100
101101impl AppCheckerSha256 {
102- #[ flux_rs:: trusted]
103102 pub fn new (
104103 hash : & ' static dyn Sha256Verifier < ' static > ,
105104 buffer : & ' static mut [ u8 ; 32 ] ,
@@ -118,7 +117,7 @@ impl AppCredentialsPolicy<'static> for AppCheckerSha256 {
118117 fn require_credentials ( & self ) -> bool {
119118 true
120119 }
121- # [ flux_rs :: trusted ]
120+
122121 fn check_credentials (
123122 & self ,
124123 credentials : TbfFooterV2Credentials ,
@@ -139,15 +138,15 @@ impl AppCredentialsPolicy<'static> for AppCheckerSha256 {
139138 _ => Err ( ( ErrorCode :: NOSUPPORT , credentials, binary) ) ,
140139 }
141140 }
142- # [ flux_rs :: trusted ]
141+
143142 fn set_client ( & self , client : & ' static dyn AppCredentialsPolicyClient < ' static > ) {
144143 self . client . replace ( client) ;
145144 }
146145}
147146
148147impl ClientData < 32_usize > for AppCheckerSha256 {
149148 fn add_mut_data_done ( & self , _result : Result < ( ) , ErrorCode > , _data : SubSliceMut < ' static , u8 > ) { }
150- # [ flux_rs :: trusted ]
149+
151150 fn add_data_done ( & self , result : Result < ( ) , ErrorCode > , data : SubSlice < ' static , u8 > ) {
152151 match result {
153152 Err ( e) => panic ! ( "Internal error during application binary checking. SHA256 engine threw error in adding data: {:?}" , e) ,
@@ -161,7 +160,6 @@ impl ClientData<32_usize> for AppCheckerSha256 {
161160}
162161
163162impl ClientVerify < 32_usize > for AppCheckerSha256 {
164- #[ flux_rs:: trusted]
165163 fn verification_done (
166164 & self ,
167165 result : Result < bool , ErrorCode > ,
@@ -218,7 +216,6 @@ pub struct AppIdAssignerNames<'a, F: Fn(&'static str) -> u32> {
218216 hasher : & ' a F ,
219217}
220218
221- #[ flux_rs:: trusted]
222219impl < ' a , F : Fn ( & ' static str ) -> u32 > AppIdAssignerNames < ' a , F > {
223220 pub fn new ( hasher : & ' a F ) -> Self {
224221 Self { hasher }
@@ -248,7 +245,6 @@ impl<'a, F: Fn(&'static str) -> u32> AppUniqueness for AppIdAssignerNames<'a, F>
248245}
249246
250247impl < ' a , F : Fn ( & ' static str ) -> u32 > Compress for AppIdAssignerNames < ' a , F > {
251- #[ flux_rs:: trusted]
252248 fn to_short_id ( & self , process : & ProcessBinary ) -> ShortId {
253249 let name = process. header . get_package_name ( ) . unwrap_or ( "" ) ;
254250 let sum = ( self . hasher ) ( name) ;
@@ -271,7 +267,6 @@ pub struct AppCheckerRsaSimulated<'a> {
271267 binary : OptionalCell < & ' a [ u8 ] > ,
272268}
273269
274- #[ flux_rs:: trusted]
275270impl < ' a > AppCheckerRsaSimulated < ' a > {
276271 pub fn new ( ) -> AppCheckerRsaSimulated < ' a > {
277272 Self {
@@ -284,7 +279,6 @@ impl<'a> AppCheckerRsaSimulated<'a> {
284279}
285280
286281impl < ' a > DeferredCallClient for AppCheckerRsaSimulated < ' a > {
287- #[ flux_rs:: trusted]
288282 fn handle_deferred_call ( & self ) {
289283 // This checker does not actually verify the RSA signature; it
290284 // assumes the signature is valid and so accepts any RSA
@@ -330,7 +324,7 @@ impl<'a> AppCredentialsPolicy<'a> for AppCheckerRsaSimulated<'a> {
330324 Err ( ( ErrorCode :: BUSY , credentials, binary) )
331325 }
332326 }
333- # [ flux_rs :: trusted ]
327+
334328 fn set_client ( & self , client : & ' a dyn AppCredentialsPolicyClient < ' a > ) {
335329 self . client . replace ( client) ;
336330 }
0 commit comments