use nom::{IResult,be_u32};
use der_parser::der_read_element_header;
use kerberos_parser::krb5_parser;
-use kerberos_parser::krb5::{EncryptionType,MessageType,PrincipalName,Realm};
+use kerberos_parser::krb5::{EncryptionType,ErrorCode,MessageType,PrincipalName,Realm};
use applayer;
use core;
use core::{AppProto,Flow,ALPROTO_FAILED,ALPROTO_UNKNOWN,STREAM_TOCLIENT,STREAM_TOSERVER,sc_detect_engine_state_free};
pub etype: Option<EncryptionType>,
/// Error code, if request has failed
- pub error_code: Option<i32>,
+ pub error_code: Option<ErrorCode>,
/// The internal transaction id
id: u64,
Some(c) => {
js.set_string("msg_type", "KRB_ERROR");
js.set_string("failed_request", &format!("{:?}", tx.msg_type));
- js.set_string("error_code", &format!("{}", c));
+ js.set_string("error_code", &format!("{:?}", c));
},
None => { js.set_string("msg_type", &format!("{:?}", tx.msg_type)); },
}