Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cryptossl/RSA : fix ExportPrivate and ExportPublic signatures #706

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/XrdCrypto/XrdCryptoRSA.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ int XrdCryptoRSA::ImportPublic(const char *, int)
}

//_____________________________________________________________________________
int XrdCryptoRSA::ExportPublic(char *, int)
int XrdCryptoRSA::ExportPublic(char *&, int)
{
// Abstract method to export the public key
ABSTRACTMETHOD("XrdCryptoRSA::ExportPublic");
Expand All @@ -104,7 +104,7 @@ int XrdCryptoRSA::ImportPrivate(const char *, int)
}

//_____________________________________________________________________________
int XrdCryptoRSA::ExportPrivate(char *, int)
int XrdCryptoRSA::ExportPrivate(char *&, int)
{
// Abstract method to export the private key
ABSTRACTMETHOD("XrdCryptoRSA::ExportPrivate");
Expand Down
4 changes: 2 additions & 2 deletions src/XrdCrypto/XrdCryptoRSA.hh
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ public:

// Import / Export methods
virtual int ImportPublic(const char *in, int lin);
virtual int ExportPublic(char *out, int lout);
virtual int ExportPublic(char *&out, int lout);
int ExportPublic(XrdOucString &exp);
virtual int ImportPrivate(const char *in, int lin);
virtual int ExportPrivate(char *out, int lout);
virtual int ExportPrivate(char *&out, int lout);
int ExportPrivate(XrdOucString &exp);

// Encryption / Decryption methods
Expand Down