Logo Search packages:      
Sourcecode: openssl version File versions  Download package

int SSL_CTX_set_cipher_list ( SSL_CTX *  ctx,
const char *  str 

specify the ciphers to be used by default by the SSL_CTX

Definition at line 1168 of file ssl_lib.c.

References STACK_OF().

      /* ssl_create_cipher_list may return an empty stack if it
       * was unable to find a cipher matching the given rule string
       * (for example if the rule string specifies a cipher which
       * has been disabled). This is not an error as far as 
       * ssl_create_cipher_list is concerned, and hence 
       * ctx->cipher_list and ctx->cipher_list_by_id has been
       * updated. */
      if (sk == NULL)
            return 0;
      else if (sk_SSL_CIPHER_num(sk) == 0)
            return 0;
      return 1;

Generated by  Doxygen 1.6.0   Back to index