Guest User

Untitled

a guest
Jun 19th, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. /* Don't allow the CN to change once it's been locked */
  2. if (ks->authenticated && multi->locked_cn)
  3. {
  4. const char *cn = session->common_name;
  5. if (cn && strcmp (cn, multi->locked_cn))
  6. {
  7. msg (D_TLS_ERRORS, "TLS Auth Error: TLS object CN attempted to change from '%s' to '%s' -- tunnel disabled",
  8. multi->locked_cn,
  9. cn);
  10.  
  11. /* change the common name back to its original value and disable the tunnel */
  12. set_common_name (session, multi->locked_cn);
  13. tls_deauthenticate (multi);
  14. }
  15. }
Add Comment
Please, Sign In to add comment