anchor.diff:              end
       end.
   
  -%% ====================================================================
  -%% Internal functions
  -%% ====================================================================
  -
  -
  -%% exec/3
  -%% ====================================================================
  -%% @doc oneproxy port dirver's main loop.
  -%% @end
  +%%%===================================================================
  +%%% Internal functions
  +%%%===================================================================
  +
  +%%--------------------------------------------------------------------
  +%% @private
  +%% @doc
  +%% oneproxy port dirver's main loop.
  +%% @end
  +%%--------------------------------------------------------------------
   -spec exec(OneProxy :: pid() | atom(), CMD :: binary(), Args :: [binary()]) -> term().
   %% ====================================================================
   exec(OneProxy, CMD, Args) when is_atom(OneProxy) ->
  
positive.code: %% ===================================================================
  %% @author Rafal Slota
  %% @copyright (C): 2014 ACK CYFRONET AGH
  %% This software is released under the MIT license
  %% cited in 'LICENSE.txt'.
  %% @end
  %% ===================================================================
  %% @doc: Port driver for oneproxy module.
  %% @end
  %% ===================================================================
  -module(oneproxy).
  -author("Rafal Slota").
  
  
negative.code:                 ?error("oneproxy port terminated due to: ~p", [Reason]),
                  error({terminated, Reason});
  
          %% Checks if port is still alive
              heartbeat ->
                  timer:send_after(timer:seconds(3), heartbeat),
                  port_command(Port, <<"heartbeat\n">>),
                  State;
          %% Reloads GSI CAs and CRLs in oneproxy port
              reload_certs ->
                  case ca_crl_to_der(get_der_certs_dir()) of
                      ok ->
  