Use specific RSA/DSA export variants 61/68761/5
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Mon, 9 May 2016 12:08:35 +0000 (14:08 +0200)
committerLukasz Pawelczyk <l.pawelczyk@samsung.com>
Wed, 11 May 2016 11:04:24 +0000 (13:04 +0200)
commit0a41580e6f4b9fa048450f697f7bca36e895f2b8
tree0d7cfd3eb598293c359d2b4e3a4c5317110a2dab
parent5d39a9bd90ad8c1f97ccd24aa62a6c90c5a055b6
Use specific RSA/DSA export variants

The reason is, that the output of a PEM is different in the case of
PrivateKey variant and DSAPrivateKey and RSAPrivateKey
variants. According to the manual they should behave the same way. They
don't. They seem to be in a different ASN1 format. This change is to be
consistent with the default behaviour of the command line tool.

This problem does not seem to appear on DER keys, but just for
consistency and to be safe do the same there.

Change-Id: I6a765e831515e9aac0353595132a139aec7b38d2
src/key.c