sign.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* This file is part of libmissive.
  2. *
  3. * libmissive is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU Lesser General Public License as published by
  5. * the Free Software Foundation, either version 3 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * libmissive is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU Lesser General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Lesser General Public License
  14. * along with libmissive. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef MISV_SIGN_H
  17. #define MISV_SIGN_H
  18. #include <epistle/message.h>
  19. #include "crypt.h"
  20. int
  21. msg_sign(Msg *msg, const Sign_skey my_skey);
  22. int
  23. msg_sign_open(Msg *msg, const Sign_pkey their_pkey);
  24. int
  25. signer_add(Msg *msg, const Sign_pkey my_pkey);
  26. int
  27. signer_remove(Msg *msg, Sign_pkey their_pkey);
  28. int
  29. signer_get(const Msg *msg, Sign_pkey their_pkey);
  30. int
  31. signer_open(Msg *msg, Sign_pkey their_pkey);
  32. #endif