當前位置: 首頁>>代碼示例>>C++>>正文


C++ CRYPT_MOD_CALL_CHECK函數代碼示例

本文整理匯總了C++中CRYPT_MOD_CALL_CHECK函數的典型用法代碼示例。如果您正苦於以下問題:C++ CRYPT_MOD_CALL_CHECK函數的具體用法?C++ CRYPT_MOD_CALL_CHECK怎麽用?C++ CRYPT_MOD_CALL_CHECK使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了CRYPT_MOD_CALL_CHECK函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: crypt_smime_application_handler

/**
 * crypt_smime_application_handler - Wrapper for CryptModuleSpecs::application_handler()
 *
 * Implements ::handler_t
 */
int crypt_smime_application_handler(struct Body *m, struct State *s)
{
  if (CRYPT_MOD_CALL_CHECK(SMIME, application_handler))
    return CRYPT_MOD_CALL(SMIME, application_handler)(m, s);

  return -1;
}
開發者ID:darnir,項目名稱:neomutt,代碼行數:12,代碼來源:cryptglue.c

示例2: return

/* fixme: Needs documentation. */
BODY *crypt_smime_sign_message (BODY *a)
{
  if (CRYPT_MOD_CALL_CHECK (SMIME, sign_message))
    return (CRYPT_MOD_CALL (SMIME, sign_message)) (a);

  return NULL;
}
開發者ID:SteveClement,項目名稱:mutt,代碼行數:8,代碼來源:cryptglue.c

示例3: crypt_smime_verify_one

/* fixme: needs documentation */
int crypt_smime_verify_one (BODY *sigbdy, STATE *s, const char *tempf)
{
  if (CRYPT_MOD_CALL_CHECK (SMIME, verify_one))
    return (CRYPT_MOD_CALL (SMIME, verify_one)) (sigbdy, s, tempf);

  return -1;
}
開發者ID:SteveClement,項目名稱:mutt,代碼行數:8,代碼來源:cryptglue.c

示例4: crypt_smime_decrypt_mime

/* Decrypt am S/MIME message. */
int crypt_smime_decrypt_mime (FILE *a, FILE **b, BODY *c, BODY **d)
{
  if (CRYPT_MOD_CALL_CHECK (SMIME, decrypt_mime))
    return (CRYPT_MOD_CALL (SMIME, decrypt_mime)) (a, b, c, d);

  return -1;
}
開發者ID:SteveClement,項目名稱:mutt,代碼行數:8,代碼來源:cryptglue.c

示例5: crypt_smime_verify_sender

/* Check that the sender matches. */
int crypt_smime_verify_sender(HEADER *h)
{
  if (CRYPT_MOD_CALL_CHECK (SMIME, smime_verify_sender))
    return (CRYPT_MOD_CALL (SMIME, smime_verify_sender)) (h);

  return 1;
}
開發者ID:SteveClement,項目名稱:mutt,代碼行數:8,代碼來源:cryptglue.c

示例6: crypt_pgp_send_menu

int crypt_pgp_send_menu (HEADER *msg, int *redraw)
{
  if (CRYPT_MOD_CALL_CHECK (PGP, send_menu))
    return (CRYPT_MOD_CALL (PGP, send_menu)) (msg, redraw);

  return 0;
}
開發者ID:SteveClement,項目名稱:mutt,代碼行數:7,代碼來源:cryptglue.c

示例7: crypt_smime_send_menu

/**
 * crypt_smime_send_menu - Wrapper for CryptModuleSpecs::send_menu()
 */
int crypt_smime_send_menu(struct Email *msg)
{
  if (CRYPT_MOD_CALL_CHECK(SMIME, send_menu))
    return CRYPT_MOD_CALL(SMIME, send_menu)(msg);

  return 0;
}
開發者ID:darnir,項目名稱:neomutt,代碼行數:10,代碼來源:cryptglue.c

示例8: return

/* This routine attempts to find the keyids of the recipients of a
   message.  It returns NULL if any of the keys can not be found.  */
char *crypt_pgp_findkeys (ADDRESS *to, ADDRESS *cc, ADDRESS *bcc)
{
    if (CRYPT_MOD_CALL_CHECK (PGP, findkeys))
        return (CRYPT_MOD_CALL (PGP, findkeys)) (to, cc, bcc);

    return NULL;
}
開發者ID:tejux,項目名稱:mutt-hacks,代碼行數:9,代碼來源:cryptglue.c

示例9: CRYPT_MOD_CALL

/**
 * crypt_smime_build_smime_entity - Wrapper for CryptModuleSpecs::smime_build_smime_entity()
 */
struct Body *crypt_smime_build_smime_entity(struct Body *a, char *certlist)
{
  if (CRYPT_MOD_CALL_CHECK(SMIME, smime_build_smime_entity))
    return CRYPT_MOD_CALL(SMIME, smime_build_smime_entity)(a, certlist);

  return NULL;
}
開發者ID:darnir,項目名稱:neomutt,代碼行數:10,代碼來源:cryptglue.c

示例10: crypt_smime_verify_one

/**
 * crypt_smime_verify_one - Wrapper for CryptModuleSpecs::verify_one()
 */
int crypt_smime_verify_one(struct Body *sigbdy, struct State *s, const char *tempf)
{
  if (CRYPT_MOD_CALL_CHECK(SMIME, verify_one))
    return CRYPT_MOD_CALL(SMIME, verify_one)(sigbdy, s, tempf);

  return -1;
}
開發者ID:darnir,項目名稱:neomutt,代碼行數:10,代碼來源:cryptglue.c

示例11: crypt_smime_verify_sender

/**
 * crypt_smime_verify_sender - Wrapper for CryptModuleSpecs::smime_verify_sender()
 */
int crypt_smime_verify_sender(struct Email *e)
{
  if (CRYPT_MOD_CALL_CHECK(SMIME, smime_verify_sender))
    return CRYPT_MOD_CALL(SMIME, smime_verify_sender)(e);

  return 1;
}
開發者ID:darnir,項目名稱:neomutt,代碼行數:10,代碼來源:cryptglue.c

示例12: crypt_pgp_valid_passphrase

int crypt_pgp_valid_passphrase (void)
{
  if (CRYPT_MOD_CALL_CHECK (PGP, valid_passphrase))
    return (CRYPT_MOD_CALL (PGP, valid_passphrase)) ();

  return 0;
}
開發者ID:SteveClement,項目名稱:mutt,代碼行數:7,代碼來源:cryptglue.c

示例13: crypt_pgp_decrypt_mime

/* Decrypt a PGP/MIME message. */
int crypt_pgp_decrypt_mime (FILE *a, FILE **b, BODY *c, BODY **d)
{
  if (CRYPT_MOD_CALL_CHECK (PGP, decrypt_mime))
    return (CRYPT_MOD_CALL (PGP, decrypt_mime)) (a, b, c, d);

  return -1;
}
開發者ID:SteveClement,項目名稱:mutt,代碼行數:8,代碼來源:cryptglue.c

示例14: crypt_smime_valid_passphrase

int crypt_smime_valid_passphrase (void)
{
  if (CRYPT_MOD_CALL_CHECK (SMIME, valid_passphrase))
    return (CRYPT_MOD_CALL (SMIME, valid_passphrase)) ();

  return 0;
}
開發者ID:SteveClement,項目名稱:mutt,代碼行數:7,代碼來源:cryptglue.c

示例15: crypt_pgp_application_pgp_handler

/* MIME handler for the application/pgp content-type. */
int crypt_pgp_application_pgp_handler (BODY *m, STATE *s)
{
  if (CRYPT_MOD_CALL_CHECK (PGP, application_handler))
    return (CRYPT_MOD_CALL (PGP, application_handler)) (m, s);
  
  return -1;
}
開發者ID:SteveClement,項目名稱:mutt,代碼行數:8,代碼來源:cryptglue.c


注:本文中的CRYPT_MOD_CALL_CHECK函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。