const qualify some pointers, use define'd length for buffer
A. Sinan Unur
10 years ago
193 | 193 | int |
194 | 194 | SSL_CTX_use_pkcs12_file(ctx, filename, password) |
195 | 195 | SSL_CTX* ctx |
196 | char* filename | |
197 | char* password | |
196 | const char *filename | |
197 | const char *password | |
198 | 198 | PREINIT: |
199 | 199 | FILE *fp; |
200 | 200 | EVP_PKEY *pkey; |
449 | 449 | OUTPUT: |
450 | 450 | RETVAL |
451 | 451 | |
452 | #define CRYPT_SSLEAY_SHARED_CIPHERS_BUFSIZE 512 | |
453 | ||
452 | 454 | char* |
453 | 455 | SSL_get_shared_ciphers(ssl) |
454 | SSL* ssl | |
455 | PREINIT: | |
456 | char buf[512]; | |
457 | CODE: | |
458 | RETVAL = SSL_get_shared_ciphers(ssl, buf, sizeof(buf)); | |
459 | OUTPUT: | |
460 | RETVAL | |
456 | SSL* ssl | |
457 | PREINIT: | |
458 | char buf[ CRYPT_SSLEAY_SHARED_CIPHERS_BUFSIZE ]; | |
459 | CODE: | |
460 | RETVAL = SSL_get_shared_ciphers( | |
461 | ssl, buf, CRYPT_SSLEAY_SHARED_CIPHERS_BUFSIZE | |
462 | ); | |
463 | OUTPUT: | |
464 | RETVAL | |
461 | 465 | |
462 | 466 | char* |
463 | 467 | SSL_get_cipher(ssl) |