/ keychain / escrowrequest / EscrowRequestServerHelpers.m
EscrowRequestServerHelpers.m
 1  
 2  #import <Foundation/Foundation.h>
 3  
 4  #import "utilities/debugging.h"
 5  #import "keychain/escrowrequest/EscrowRequestServer.h"
 6  #import "keychain/escrowrequest/EscrowRequestServerHelpers.h"
 7  
 8  // False by default, to avoid turning this on in tests that don't want it
 9  static bool EscrowRequestServerEnabled = false;
10  bool EscrowRequestServerIsEnabled(void) {
11      return EscrowRequestServerEnabled;
12  }
13  void EscrowRequestServerSetEnabled(bool enabled) {
14      EscrowRequestServerEnabled = enabled;
15  }
16  
17  void EscrowRequestServerInitialize(void) {
18      secnotice("escrowrequest", "performing EscrowRequestServerInitialize");
19      EscrowRequestServer* server = [EscrowRequestServer server];
20      [server.controller.stateMachine startOperation];
21  }