commit | 8053da40579c6ce3933bdfa6515d6ef4f98b6c7a | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Wed Sep 11 22:28:30 2013 +0200 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Thu Sep 12 11:57:00 2013 +0200 |
tree | 26031d216de3cfa6fce33c82fb97ade6bd1073b6 | |
parent | d4eb5b51969ac43c5d52605c06cab278ba8191b3 [diff] [blame] |
x509write_csr() now fully using PK internally
diff --git a/library/pk.c b/library/pk.c index 77f5034..80eccc9 100644 --- a/library/pk.c +++ b/library/pk.c
@@ -273,4 +273,15 @@ return( ctx->pk_info->name ); } +/* + * Access the PK type + */ +pk_type_t pk_get_type( const pk_context *ctx ) +{ + if( ctx == NULL || ctx->pk_info == NULL ) + return( POLARSSL_PK_NONE ); + + return( ctx->pk_info->type ); +} + #endif /* POLARSSL_PK_C */