Skip to content

Commit

Permalink
CMS
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Jul 2, 2023
1 parent 56759fb commit 0132eab
Show file tree
Hide file tree
Showing 10 changed files with 14,922 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/cert.ex
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ defmodule CA.KEP do
def oid(x,v), do: {x,v}

def flat(code,{k,v},acc) when is_integer(k), do: [flat(code,v,acc)|acc]
def flat(code,{k,v},acc), do: [flat(code,k,acc)|acc]
def flat(code,{k,_v},acc), do: [flat(code,k,acc)|acc]
def flat(code,k,acc) when is_list(k), do: [:lists.map(fn x -> flat(code,x,acc) end, k)|acc]
def flat(code,k,acc) when is_binary(k), do: [k|acc]
def flat(_code,k,acc) when is_binary(k), do: [k|acc]

def parseCert(cert) do
{:Certificate, a, _, _} = cert
Expand Down
Loading

0 comments on commit 0132eab

Please sign in to comment.