for (i=0; i<num; i+=n) { c=ssl_get_cipher_by_char(s,p); p+=n; if (c != NULL) { if (!sk_SSL_CIPHER_push(sk,c)) { SSLerr(SSL_F_SSL_BYTES_TO_CIPHER_LIST,ERR_R_MALLOC_FAILURE); goto err; } } }  if (skp != NULL) *skp=sk; return(sk); err: if ((skp == NULL) || (*skp == NULL)) sk_SSL_CIPHER_free(sk);
STACK_OF(SSL_CIPHER) *ssl_get_ciphers_by_id(SSL *s)	{	if ((s != NULL) && (s->cipher_list_by_id != NULL))		{		return(s->cipher_list_by_id);		}	else if ((s != NULL) && (s->ctx != NULL) &&		(s->ctx->cipher_list_by_id != NULL))		{		return(s->ctx->cipher_list_by_id);		}	return(NULL);	}