OpenSSL Communities

Let's do some bike-shedding of OSSL_FN rename

Tomas Mraz PublicSeen by 20

As it was suggested before the OSSL_FN name for the fixed size bignums is confusing as fn is usually used as a shortcut for function (even within the OpenSSL source already). Here is the PR that renames it to OSSL_FSN but there are some objections that the name is ugly. https://github.com/openssl/openssl/pull/33882

Tomas Mraz

So what would be your preference?

  1. keep the old name

  2. rename to OSSL_FSN

  3. OSSL_FIXNUM + fxn as a shortcut

  4. OSSL_FXN everywhere

  5. something else?

Richard Levitte (OpenSSL)

If we are going for a rename, I'd rather go with 3 or 4. The original "type name" was FIXNUM (see the design doc, which still contains traces).

Matt Caswell

OSSL_FXN would be my preference. Maybe its because I'm used to calling it the FIXNUM solution - so FXN seems more natural to me. With OSSL_FSN, feels less natural to me but is okay. I'd prefer to avoid a longer name OSSL_FIXNUM.

Richard Levitte (OpenSSL)

Mechanically, OSSL_FSN → OSSL_FXN (with diverse casing preserved) seems like a fairly easy sed task in that PR

Tomas Mraz

My vote would be for 2. or 4. with slight preference towards 2, BTW.

Todd Short

I like 3 ("FIXNUN") spelled out, it's only 3 more letters than FXN, which would be my second choice (4).

Tomas Mraz

We definitely need a three-letter-max shortcut for things like file name, function name pre/postfixes. And, IMO for searching it is better to not have two different forms.

Simo Sorce

It clearly should be OSSL_FUN !

(j/k OSSL_FXN works for me)

Igor Ustinov

By analogy with BIGNUM, the pair FIXNUM/fxn (without the OSSL_ prefix) seems quite logical.

What was the reason for renaming FIXNUM to OSSL_FN?

Tomas Mraz

Because the identifier might get public eventually it cannot be just FIXNUM according to our policy and OSSL_FIXNUM is unnecessarily long.

Nikola Pajkovský

The shorter the version, the better, so I can add another short name XN (fiXNum).

OSSL_FXN works for me, same as FN. I don't read capital FN as function.

Tomas Mraz

I think we are now somehow converging to the option 4.