Skip to content

Commit

Permalink
cmp code
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Jul 28, 2023
1 parent e369983 commit e39f550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ca.ex
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
defmodule CA do
use Application
use Supervisor

require Record
Enum.each(Record.extract_all(from_lib: "ca/include/PKIXCMP-2009.hrl"),
fn {name, definition} -> Record.defrecord(name, definition) end)
def init([]), do: {:ok, { {:one_for_one, 5, 10}, []} }
def port(), do: :application.get_env(:ca, :port, 8046)

def start(_type, _args) do
# {:ok, _} = :cowboy.start_clear(:http,[{:port,port()}],%{env: %{dispatch: :ca_enroll.boot()}})
:logger.add_handlers(:ldap)
CA.CMP.start
:supervisor.start_link({:local, __MODULE__}, __MODULE__, [])
Expand Down

0 comments on commit e39f550

Please sign in to comment.