diff options
Diffstat (limited to 'src/lib/libcrypto/pem/pem_sign.c')
-rw-r--r-- | src/lib/libcrypto/pem/pem_sign.c | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/src/lib/libcrypto/pem/pem_sign.c b/src/lib/libcrypto/pem/pem_sign.c index d56f9f9e14..aabafb702d 100644 --- a/src/lib/libcrypto/pem/pem_sign.c +++ b/src/lib/libcrypto/pem/pem_sign.c | |||
@@ -58,32 +58,25 @@ | |||
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include "cryptlib.h" | 60 | #include "cryptlib.h" |
61 | #include "rand.h" | 61 | #include <openssl/rand.h> |
62 | #include "evp.h" | 62 | #include <openssl/evp.h> |
63 | #include "objects.h" | 63 | #include <openssl/objects.h> |
64 | #include "x509.h" | 64 | #include <openssl/x509.h> |
65 | #include "pem.h" | 65 | #include <openssl/pem.h> |
66 | 66 | ||
67 | void PEM_SignInit(ctx,type) | 67 | void PEM_SignInit(EVP_MD_CTX *ctx, EVP_MD *type) |
68 | EVP_MD_CTX *ctx; | ||
69 | EVP_MD *type; | ||
70 | { | 68 | { |
71 | EVP_DigestInit(ctx,type); | 69 | EVP_DigestInit(ctx,type); |
72 | } | 70 | } |
73 | 71 | ||
74 | void PEM_SignUpdate(ctx,data,count) | 72 | void PEM_SignUpdate(EVP_MD_CTX *ctx, unsigned char *data, |
75 | EVP_MD_CTX *ctx; | 73 | unsigned int count) |
76 | unsigned char *data; | ||
77 | unsigned int count; | ||
78 | { | 74 | { |
79 | EVP_DigestUpdate(ctx,data,count); | 75 | EVP_DigestUpdate(ctx,data,count); |
80 | } | 76 | } |
81 | 77 | ||
82 | int PEM_SignFinal(ctx,sigret,siglen,pkey) | 78 | int PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, |
83 | EVP_MD_CTX *ctx; | 79 | EVP_PKEY *pkey) |
84 | unsigned char *sigret; | ||
85 | unsigned int *siglen; | ||
86 | EVP_PKEY *pkey; | ||
87 | { | 80 | { |
88 | unsigned char *m; | 81 | unsigned char *m; |
89 | int i,ret=0; | 82 | int i,ret=0; |