summaryrefslogtreecommitdiff
path: root/lib/dns/sec/dnssafe/surrendr.c
blob: c9aa460e51bc07a789796c4f33a122f05585d6ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Copyright (C) RSA Data Security, Inc. created 1992, 1996.  This is an
   unpublished work protected as such under copyright law.  This work
   contains proprietary, confidential, and trade secret information of
   RSA Data Security, Inc.  Use, disclosure or reproduction without the
   express written authorization of RSA Data Security, Inc. is
   prohibited.
 */

#include "global.h"
#include "algae.h"
#include "surrendr.h"

/* Returns 0, AE_CANCEL.
 */
int CheckSurrender (surrenderContext)
A_SURRENDER_CTX *surrenderContext;
{
  if (surrenderContext == (A_SURRENDER_CTX *)NULL_PTR)
    return (0);

  if ((*surrenderContext->Surrender) (surrenderContext->handle))
    return (AE_CANCEL);
  return (0);
}