|
1 | 1 | //! Negotiation-related types |
2 | 2 | use der::{ |
3 | | - AnyRef, Choice, Enumerated, Sequence, |
| 3 | + Choice, Enumerated, Sequence, |
4 | 4 | asn1::{BitString, OctetStringRef}, |
5 | 5 | }; |
6 | 6 |
|
@@ -295,14 +295,14 @@ pub enum NegState { |
295 | 295 | #[derive(Clone, Copy, Debug, Eq, PartialEq, Sequence)] |
296 | 296 | pub struct NegHints<'a> { |
297 | 297 | /// SHOULD<5> contain the string "not_defined_in_RFC4178@please_ignore". |
298 | | - /// This is currently `AnyRef` as `GeneralString` is not part of the `der` crate |
| 298 | + /// This is currently `OctetStringRef` as `GeneralString` is not part of the `der` crate |
299 | 299 | #[asn1( |
300 | 300 | context_specific = "0", |
301 | 301 | optional = "true", |
302 | 302 | tag_mode = "IMPLICIT", |
303 | 303 | constructed = "true" |
304 | 304 | )] |
305 | | - pub hint_name: Option<AnyRef<'a>>, // TODO: GeneralString |
| 305 | + pub hint_name: Option<OctetStringRef<'a>>, // TODO: GeneralString |
306 | 306 |
|
307 | 307 | /// Never present. MUST be omitted by the sender. Note that the encoding rules, as specified in [X690], require that this structure not be present at all, not just be zero. |
308 | 308 | /// |
@@ -389,7 +389,7 @@ mod tests { |
389 | 389 | ); |
390 | 390 | assert_eq!( |
391 | 391 | b"not_defined_in_RFC4178@please_ignore", |
392 | | - &neg_token.neg_hints.unwrap().hint_name.unwrap().value()[2..] |
| 392 | + &neg_token.neg_hints.unwrap().hint_name.unwrap().as_bytes()[2..] |
393 | 393 | ); |
394 | 394 | } |
395 | 395 |
|
|
0 commit comments