questions.h 451 B

1234567891011121314151617181920212223242526
  1. #ifndef _QA_QUESTIONS_H_
  2. #define _QA_QUESTIONS_H_
  3. #include <sys/queue.h>
  4. #include <openssl/x509.h>
  5. typedef struct qa_question {
  6. const char* name;
  7. int (* setup) (void);
  8. int (* teardown) ();
  9. int (* test) (X509 *cert);
  10. int (* ask_rsa) (RSA *rsa);
  11. int (* ask_crt) (X509 *cert);
  12. LIST_ENTRY(qa_question) qs;
  13. } qa_question_t;
  14. LIST_HEAD(listhead, qa_question) questions;
  15. void register_all_questions(void);
  16. #endif /* _QA_QUESTIONS_H_ */