File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ impl Ca {
142
142
}
143
143
144
144
/// End-entity [Certificate]
145
+ #[ derive( Debug ) ]
145
146
pub struct EndEntity {
146
147
cert : Certificate ,
147
148
key_pair : KeyPair ,
@@ -157,19 +158,6 @@ impl EndEntity {
157
158
}
158
159
}
159
160
160
- impl fmt:: Debug for EndEntity {
161
- /// Formats the `EndEntity` information without revealing the key pair.
162
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
163
- // The key pair is omitted from the debug output as it contains secret information.
164
- let EndEntity { cert, key_pair } = self ;
165
-
166
- f. debug_struct ( "EndEntity" )
167
- . field ( "cert" , cert)
168
- . field ( "key_pair" , key_pair)
169
- . finish ( )
170
- }
171
- }
172
-
173
161
/// [CertificateParams] from which an [EndEntity] [Certificate] can be built
174
162
#[ derive( Clone , Debug ) ]
175
163
pub struct EndEntityBuilder {
You can’t perform that action at this time.
0 commit comments