Browse Source

Use the public_key API; not the helper modules.

Tim Fletcher 16 years ago
parent
commit
09857076a1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/oauth_rsa_sha1.erl

+ 1 - 1
src/oauth_rsa_sha1.erl

@@ -20,7 +20,7 @@ to_binary(Term) when is_binary(Term) ->
 
 public_key(Path) when is_list(Path) ->
   {ok, [{cert, DerCert, not_encrypted}]} = public_key:pem_to_der(Path),
-  {ok, Cert} = pubkey_cert_records:decode_cert(DerCert, otp),
+  {ok, Cert} = public_key:pkix_decode_cert(DerCert, otp),
   public_key(Cert);
 public_key(#'OTPCertificate'{tbsCertificate=Cert}) ->
   public_key(Cert);