Simple AES chat program
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

client.c 399B

12345678910111213141516171819202122232425262728
  1. #include <stdio.h>
  2. #include <errno.h>
  3. #include "comm.h"
  4. #include "aes.h"
  5. int main()
  6. {
  7. struct session sess;
  8. initializeSBox();
  9. sess_init(&sess);
  10. if (do_resolve("127.0.0.1", NULL, &sess.params))
  11. {
  12. perror("could not open socket");
  13. return 1;
  14. }
  15. if (do_connect(&sess))
  16. {
  17. perror("could not connect");
  18. return 1;
  19. }
  20. do_unresolve(sess.params);
  21. sess_destroy(&sess);
  22. }