Method: OpenSSL::BN#get_flags

Defined in:
ossl_bn.c

#get_flags(flags) ⇒ Object

Returns the flags on the BN object. The argument is used as a bit mask.

Parameters

  • flags - integer



1172
1173
1174
1175
1176
1177
1178
1179
# File 'ossl_bn.c', line 1172

static VALUE
ossl_bn_get_flags(VALUE self, VALUE arg)
{
    BIGNUM *bn;
    GetBN(self, bn);

    return INT2NUM(BN_get_flags(bn, NUM2INT(arg)));
}